Difference between revisions of "LUA:GetSpawnID"

(Created page with "= LUA Functions: GetSpawnID() = Gets the DB ID of the given spawn ==== Syntax ==== var = GetSpawnID(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' ...")
 
(No difference)

Latest revision as of 18:29, 11 September 2013

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