Skip to content

GetPlayerSiegeEngine

The siege engine a player works.

GetPlayerSiegeEngine(pid)
Parameter Type
pid number the player

number - the engine’s id; nil when they work none

local id = GetPlayerSiegeEngine(pid)
if id then SendClientMessage(pid, COLOR_WHITE, "You work a " .. GetEntityTemplate(id) .. ".") end

SetSiegeEngineOperator · OnSiegeEngineAction · the Siege engines group of the index