No categories assigned

LUA:RemoveSpawnAccess

Revision as of 16:18, 10 May 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: RemoveSpawnAccess() = Adds coin to the given spawns loot table. ==== Syntax ==== RemoveSpawnAccess(param1, param2) ==== Parameters ==== ; Required - ''param1'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: RemoveSpawnAccess()

Adds coin to the given spawns loot table.

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