No categories assigned

LUA:GetSpawnLocationPlacementID

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

LUA Functions: GetSpawnLocationPlacementID()

Gets the location placement ID of the given spawn


Syntax

var = GetSpawnLocationPlacementID(param1)


Parameters

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


Usage

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

The NPC will respond with its location placement ID

Notes

Returns an int32