Difference between revisions of "LUA:SetBrainTick"
(Created page with "= LUA Functions: SetBrainTick() = Sets how often the AI will run in milliseconds ==== Syntax ==== SetBrainTick(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Sp...") |
(No difference)
|
Latest revision as of 20:53, 23 May 2013
LUA Functions: SetBrainTick()
Sets how often the AI will run in milliseconds
Syntax
SetBrainTick(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int16)
- param1 spawn to set the brain tick for
- param2 is the time in milliseconds
Usage
function spawn(Spawn)
SetBrainTick(Spawn, 200)
end
This will cause the AI to run 5 times a second
Notes
Tick can not be set below 20 miliseconds