No categories assigned

LUA:GetSpawnGroupID

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

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