This site has been archived and made available for preservation purposes. No edits can be made.

IsNearPoint

Returns vaultmp::True if the Actor is in the given sphere.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::State (*IsNearPoint)(vaultmp::ID, vaultmp::Value, vaultmp::Value, vaultmp::Value, vaultmp::Value);
native Bool:IsNearPoint(ID, Float:X, Float:Y, Float:Z, Float:R);

[top]Parameters

vaultmp::ID - the ID of the Actor
vaultmp::Value - X coordinate of the center
vaultmp::Value - Y coordinate of the center
vaultmp::Value - Z coordinate of the center
vaultmp::Value - The radius of the sphere

[top]Return value

Returns a vaultmp::State (True - the Actor is in the sphere, False - the Actor is not in the sphere).

[top]Usage example

Code cpp:
vaultmp::State state;
state = IsNearPoint(actor,5.0,8.0,0.0,20.0);
Code c:
new bool:state;
state = IsNearPoint(actor,5.0,8.0,0.0,20.0);