NPC.GetPathDistanceToGoal

From GMod Wiki

Jump to: navigation, search
Function
Syntax NPC:GetPathDistanceToGoal( )
Description:
Get how long the path of a moving NPC will be.
Returns: Number
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.GetPathDistanceToGoal]NPC.GetPathDistanceToGoal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the distance of a path of a metrocop.
Used onNewerServer.png
Code
 
MsgN( ents.FindByClass( "npc_metropolice" )[1]:GetPathDistanceToGoal() );
 
OutputLength.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox