No categories assigned
LUA:SetBrainTick
- Last edited 12 years ago by I need to Update My Profile
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