set_assigned_pilot

Sets or clears a live unit’s assigned pilot.

Function

Synopsis

btech.unit.set_assigned_pilot( unit, pilot )

Arguments

DbRef|Object unit
The live unit.
DbRef|Object|nil pilot
A player to assign as the pilot, or nil to clear the assignment.

Returns

None.

See Also