No categories assigned

LUA:GetSpawnID

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