You are viewing an old version of this page. Return to the latest version.
Version of 19:59, 15 October 2012 by I need to Update My Profile
Difference between revisions of "LUA:AddSpawnAccess"
(Created page with "= LUA Functions: AddSpawnAccess() = Adds access to a private spawn for the given spawn. ==== Syntax ==== AddSpawnAccess(param1, param2) ==== Parameters ==== ; Required - ''pa...") |
|||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | Adds access to a private spawn for the given spawn. | + | |Name = AddSpawnAccess |
| − | + | |Description = Adds access to a private spawn for the given spawn. | |
| − | + | |Param1 = Spawn | |
| − | = | + | |Param1Desc = is the private spawn |
| − | + | |Param2 = Spawn | |
| − | + | |Param2Desc = is the spawn gaining access to the private spawn | |
| − | + | |Example = | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| Line 21: | Line 15: | ||
end | end | ||
</pre> | </pre> | ||
| − | + | |ExampleDesc = This will allow the player to see the private spawn. | |
| − | This will allow the player to see the private spawn. | + | |Notes = Use this to hide an NPC from player after a specific step in a quest has been completed |
| + | }} | ||
Latest revision as of 12:14, 30 January 2021
LUA:AllFunctions - AddSpawnAccess
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds access to a private spawn for the given spawn.
Syntax
AddSpawnAccess(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (Spawn)
- param1 is the private spawn
- param2 is the spawn gaining access to the private spawn
Example
function hailed(NPC, Spawn)
-- Get a pointer to the closest spawn in the zone with a DB id of 120001
private_spawn = GetSpawn(Spawn, 120001)
-- Add access to the player to be able to see the private spawn
AddSpawnAccess(private_spawn, Spawn)
end
This will allow the player to see the private spawn.
Notes
Use this to hide an NPC from player after a specific step in a quest has been completed