Difference between revisions of "LUA:GetZ"
(Created page with "= LUA Functions: GetZ() = Gets the current Z location for the given spawn ==== Syntax ==== var = GetZ(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'...") |
(No difference)
|
Latest revision as of 19:39, 11 September 2013
LUA Functions: GetZ()
Gets the current Z location for the given spawn
Syntax
var = GetZ(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's Z location we want to get
Usage
function hailed(NPC, Spawn)
Say(NPC, "Your location is: " .. GetX(Spawn) .. ", " .. GetY(Spawn) .. ", " .. GetZ(Spawn))
end
The NPC will respond with the players position
Notes
Returns a float