No categories assigned

LUA:GetSpawnGroupID

LUA Functions: GetSpawnGroupID()

Gets the spawn group of the given spawn


Syntax

var = GetSpawnGroupID(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "My group id is: " .. GetSpawnGroupID(NPC))
end

The NPC will respond with its group id

Notes

Returns an int32