WHUserApi::GetUnit (open)

Get the unit object for a unit

Syntax

LOADLIB "mod::wrd/lib/internal/userapi.whlib";

OBJECT FUNCTION GetUnit(INTEGER entityid)

Parameters

INTEGER entityid

Entity ID of the unit

Return value

OBJECT

Unit object