No categories assigned
LUA:Despawn
- Last edited 13 years ago by I need to Update My Profile
LUA Functions: Despawn()
Removes the given spawn from the world.
Syntax
Despawn(param1, [param2])
Parameters
- Required - param1 (Spawn)
- param is the spawn to remove
- Optional - param2 (int32)
- param2 is the time in milli seconds before the spawn is removed
Usage
function hailed(NPC, Spawn)
Despawn(NPC)
end
This would make the spawn despawn when it is hailed.