<incomplete stub article>

 

eventDroidIdle() is triggered once the repairs/rearming is complete.

You can keep track of every stage of the repair process by looking at the properties of the Droid object.

If the .order property is DORDER_RTRDORDER_RTR_SPECIFIED or DORDER_REARM, the droid hasn't yet been repaired/rearmed.

You can determine what stage of the repair/rearm process the droid is at by looking at it's .action property:

As repairs are being performed, the droid's .health property will increase towards 100, and if it's a VTOL it's .armed property will also increase towards 100.

Once repairs/rearming is complete, the following will happen:

Note that VTOLs are sometimes told to move away from a rearming pad (eg. if they are repaired and another VTOL needs the pad, or if a land unit is trying to move across the pad). In this scenario the droid action will be DACTION_CLEARREARMPAD.