GetPlayerSiegeEngine
The siege engine a player works.
Syntax
Section titled “Syntax”GetPlayerSiegeEngine(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the engine’s id; nil when they work none
Example
Section titled “Example”local id = GetPlayerSiegeEngine(pid)if id then SendClientMessage(pid, COLOR_WHITE, "You work a " .. GetEntityTemplate(id) .. ".") endSee also
Section titled “See also”SetSiegeEngineOperator · OnSiegeEngineAction · the Siege engines group of the index
