Difference between revisions of "LUA:Despawn"
(Created page with "= LUA Functions: Despawn() = Removes the given spawn from the world. ==== Syntax ==== Despawn(param1, [param2]) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param''...") |
(No difference)
|
Latest revision as of 21:44, 15 October 2012
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.