No categories assigned
LUA:GetSpawnID
- Last edited 12 years ago by I need to Update My Profile
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