mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
465 B
465 B
Function: SetLuaBrain(spawn)
Description: Creates a new LUA Brain for the Spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
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