Difference between revisions of "LUA:AddTransportSpawn"

(LUA Functions: AddTransportSpawn())
 
Line 1: Line 1:
= LUA Functions: AddTransportSpawn() =
+
{{LUAFunction
Adds a spawn to it's zone's list of lifts/boats, allowing the server to track any player's location while riding this lift/boat.
+
|Name = AddTransportSpawn
 
+
|Description =  
==== Syntax ====
+
|Param1 = Spawn
AddTransportSpawn(param1)
+
|Param1Desc = is the spawn to set as a lift
 
+
|Example =
 
 
==== Parameters ====
 
; Required - ''param1'' (Spawn*)
 
: ''param1'' is the spawn to set as a lift
 
 
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function spawn(NPC)
 
function spawn(NPC)
Line 17: Line 10:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = When this spawn pops ingame, the spawn will be added to the zone's transport spawn list.
When this spawn pops ingame, the spawn will be added to the zone's transport spawn list. This lets the server keep track of where players are located while riding this lift.
+
|Notes = This lets the server keep track of where players are located while riding this lift.
 +
}}

Latest revision as of 12:08, 30 January 2021


LUA:AllFunctions - AddTransportSpawn

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker



Syntax

AddTransportSpawn(param1)

Parameters

Required - param1 (Spawn)
param1 is the spawn to set as a lift


Example

function spawn(NPC)
    AddTransportSpawn(NPC)
end

When this spawn pops ingame, the spawn will be added to the zone's transport spawn list.

Notes

This lets the server keep track of where players are located while riding this lift.