G.GetTaskID

From GMod Wiki

Jump to: navigation, search
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: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetTaskID]G.GetTaskID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

Descriptionreturns the TaskID for the AI task "TASK_RUN_PATH",.
Used onNewerServer.png
Code
Msg("\tTaskID: ".. tostring(GetTaskID("TASK_RUN_PATH")).."\n")
OutputTaskID: 46
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox