G.GetTaskID
From GMod Wiki
Function | |
Syntax |
GetTaskID( String AI Task ) Where is this used? |
Description: | |
Returns an integer based off the NPC task string. | |
Returns: | Integer |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.GetTaskID]G.GetTaskID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | returns the TaskID for the AI task "TASK_RUN_PATH",. |
---|---|
Used on | |
Code | Msg("\tTaskID: ".. tostring(GetTaskID("TASK_RUN_PATH")).."\n") |
Output | TaskID: 46 |