No categories assigned

LUA:GetSpawnLocationID

Revision as of 18:32, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetSpawnLocationID() = Gets the location ID of the given spawn ==== Syntax ==== var = GetSpawnLocationID(param1) ==== Parameters ==== ; Required - ''param1''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetSpawnLocationID()

Gets the location ID of the given spawn


Syntax

var = GetSpawnLocationID(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's location ID we want


Usage

function hailed(NPC, Spawn)
    Say(NPC, "My location ID is: " .. GetSpawnLocationID(NPC))
end

The NPC will respond with its location ID

Notes

Returns an int32