NPC.GetPathTimeToGoal

From GMod Wiki

Jump to: navigation, search
Function
Syntax NPC:GetPathTimeToGoal( )
Description:
Get how long it will take for a running NPC to get to it's destination.
Returns: Number
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.GetPathTimeToGoal]NPC.GetPathTimeToGoal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the time it will take for a metrocop to stop running.
Used onNewerServer.png
Code
 
MsgN( ents.FindByClass( "npc_metropolice" )[1]:GetPathTimeToGoal() );
 
OutputTime in seconds.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox