- Joined
- May 9, 2009
- Messages
- 735
I am looking for anything that can refer to the unit being cancelled in the event 'unit cancels training a unit'. I looked all over the helper but couldn't find anything that gives an answer.
UnitType convert to a string?
Also your idea sounds acceptable for only one or few units. May I ask what exactly you want to achieve with checking the canceling?
cannot reference the 'cancelled unit' or the 'training unit' because no such event responses exist.
"Trained Unit-Type" not "Trained Unit"
When you order the barracks to recruit a unit.
That unit is not yet created, so it has no id, no location, no owner, no nothing.
You cannot kill nothing, give nothing an ability, set nothing's health or let nothing do an order.
That is why they respond to Unit-Type rather than Unit.
The barracks sets his training value to that unit type.
Unit-Type is the event response.
'Unit type of (trained unit) equals to 'some unit'
"Trained Unit-Type" not "Trained Unit"
That is why they respond to Unit-Type rather than Unit.
Unit-Type is the event response.