Help
Remember Me?
Home
Forum
Download
Scripting docs
Wiki
Main
Special Pages
Books
Recent Changes
Blogs
Wiki
Main
IsNearPoint
This site has been archived and made available for preservation purposes. No edits can be made.
If this is your first visit, be sure to check out the
FAQ
by clicking the link above. You may have to
register
before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
article
discussion
source
history
Viewing source for:
IsNearPoint
Returns [wiki="True"]vaultmp::True[/wiki] if the [wiki]Actor[/wiki] is in the given sphere. [h="2"] Declaration [/h] [highlight=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); [/highlight] [h="2"] Parameters [/h] [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki] [b]vaultmp::Value[/b] - X coordinate of the center [b]vaultmp::Value[/b] - Y coordinate of the center [b]vaultmp::Value[/b] - Z coordinate of the center [b]vaultmp::Value[/b] - The radius of the sphere [h="2"] Return value [/h] Returns a [wiki="State"]vaultmp::State[/wiki] ([wiki]True[/wiki] - the [wiki]Actor[/wiki] is in the sphere, [wiki]False[/wiki] - the [wiki]Actor[/wiki] is not in the sphere). [h="2"] Usage example[/h] [highlight=cpp] vaultmp::State state; state = IsNearPoint(actor,5.0,8.0,0.0,20.0); [/highlight] [highlight=c] new bool:state; state = IsNearPoint(actor,5.0,8.0,0.0,20.0); [/highlight] [category]VaultMP interface[/category] [category]Scripting functions[/category] [category]Actor functions[/category]