Returns
vaultmp::True if the
Actor is in the given sphere.
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);
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
Returns a
vaultmp::State (
True - the
Actor is in the sphere,
False - the
Actor is not in the sphere).
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);