The owner of the unit.
The rawcode of the unit.
The x-coordinate of the unit.
The y-coordinate of the unit.
Unit facing in degrees.
See: bj_UNIT_FACING
constant for default facing direction of units in BJ scripts and GUI.
Generated using TypeDoc
Creates a unit of type
unitid
for playerid
, facing a certain direction at the provided coordinates. Returns handle to unit.Example: Create a human footman for first player (red) at map coordinates -30, 0, facing north: