Add Order =========== .. code-block:: csharp public void AddOrder(Order order, bool isAdditive) This method allows you to give orders to a unit, for example - move to position, move to target, or attack an enemy target. Fires the ``ReceivedOrder`` event. If you don't want the event to fire, use ``AddOrderNoNotify`` instead. .. code-block:: csharp SelfUnit.AI.AddOrder(moveOrder); **Arguments** ``Order order`` - an object of type ``Order``, contains all the order info - target or position to move, etc. It can be a ``MovePositionOrder`` or any other child class of the ``Order`` class. ``bool isAdditive`` - if this argument is set to **true**, the new order will be added to the unit's order sequence. If **false**, the order will stop all current unit orders and replace them with itself. **Built-in order types** ================================== ==================================================================== Order Type Description ================================== ==================================================================== MovePositionOrder Move to specified position AttackOrder Attack specified target Follow Order Follow specified unit ================================== ====================================================================