SetSiegeEngineOperator
Puts a player at a siege engine as its operator, or takes its operator away.
The player works it from wherever they stand - walking off lets go of it, as it does for anyone. Someone else working it lets go. A player works one engine at a time.
Syntax
Section titled “Syntax”SetSiegeEngineOperator(id [, pid])| Parameter | Type | |
|---|---|---|
id |
number | the engine |
pid |
number | the player; nil = nobody works it (optional) |
Returns
Section titled “Returns”boolean - false when it is no engine, it is wrecked, or the player is not in its world
Example
Section titled “Example”SetSiegeEngineOperator(id, pid) -- the gunner's place is theirsSee also
Section titled “See also”GetPlayerSiegeEngine · OnSiegeEngineAction · the Siege engines group of the index
