G.GetTaskID
From GMod Wiki
Revision as of 19:18, 6 October 2009 by Crazy Quebecer (Talk | contribs)
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 |