DistanceToPoint (script event)

From modwiki

Jump to: navigation, search

Description

Returns the distance of this entity to a point.

Usage

In your script type...

float distanceToPoint( vector point )

Parameters

  • [point] - The point in space to trace the distance to.

Examples

 
$my_entity.distanceToPoint('120 52 10');

Notes

This script event returns the distance to a point as a float.


Personal tools
Main