No categories assigned

LUA:Despawn

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.