Difference between revisions of "LUA:RemoveSpawnAccess"

(Created page with "= LUA Functions: RemoveSpawnAccess() = Adds coin to the given spawns loot table. ==== Syntax ==== RemoveSpawnAccess(param1, param2) ==== Parameters ==== ; Required - ''param1'...")
 
 
Line 1: Line 1:
 
= LUA Functions: RemoveSpawnAccess() =
 
= LUA Functions: RemoveSpawnAccess() =
Adds coin to the given spawns loot table.
+
Removes a spawn from another's allowed access list
  
 
==== Syntax ====
 
==== Syntax ====

Latest revision as of 20:55, 23 May 2013

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