Can I cancel a unit's training through triggers?

Evoroth

New Member
Reaction score
11
I just realized that cancelling a training doesn't give an order. So, is there any way to do this through triggers? I can remove it when it has trained, and I can remove and recreate the building, but can I cancel a single unit?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Code:
Cancel Training
    Events
        Unit - A unit Begins training a unit
    Conditions
        (Trained unit-type) Equal to Footman
    Actions
        Custom script:   call IssueImmediateOrderById(GetTriggerUnit(), 851976)

This would order the "Triggering unit" to cancel the training of a Footman as soon as it starts.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top