NPC.GetPathTimeToGoal
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.GetPathTimeToGoal]NPC.GetPathTimeToGoal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the time it will take for a metrocop to stop running. |
---|---|
Used on | |
Code | MsgN( ents.FindByClass( "npc_metropolice" )[1]:GetPathTimeToGoal() ); |
Output | Time in seconds. |
Additional Notes
- If the NPC is not moving, returns 0