No categories assigned

LUA:Despawn

Revision as of 21:44, 15 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: Despawn() = Removes the given spawn from the world. ==== Syntax ==== Despawn(param1, [param2]) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.