No categories assigned

LUA:GetSpawnID

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

LUA Functions: GetSpawnID()

Gets the DB ID of the given spawn


Syntax

var = GetSpawnID(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "My DB ID is: " .. GetSpawnID(NPC))
end

The NPC will respond with its DB ID

Notes

Returns an int32