mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
525 B
525 B
Function: SetBrainTick(spawn, tick)
Description: Sets the Spawn's brain tick rate in milliseconds.
Parameters:
spawn(Spawn) - Spawn object representingspawn.tick(uint16) - Integer valuetick.
Returns: None.
Example:
-- From SpawnScripts/GMHall/TrainingDummy.lua
function spawn(NPC)
-- set the calls to the ai to 10 mins as there is no ai
SetBrainTick(NPC, 600000)
SetLuaBrain(NPC)
-- give the spawn a crap load of hp so we can't one hit kill
SetHP(NPC, 1000000)
end