No categories assigned

LUA:RemoveSpawnAccess

LUA Functions: RemoveSpawnAccess()

Removes a spawn from another's allowed access list

Syntax

RemoveSpawnAccess(param1, param2)


Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the private spawn
param2 is the spawn loosing access to the spawn given in the first param

Usage

function hailed(NPC, Player)
    -- Remove the player from the access list for this spawn
    RemoveSpawnAccess(NPC, Player)
end

This spawn script would remove the player who hails the spawn from the access list