Lua GetInstanceID

From ArcEmu-Wiki
Jump to: navigation, search

Description

Used to find the instance ID number of the instance the unit is in, if the unit is in an instance. Else returns false.

Usage/Example

function OnSpawn(pUnit)
	INSTANCES[pUnit:GetInstanceID()]["MyMob"] = pUnit:GetGUID() -- Store our GUID inside this instances' table.
end
Personal tools