- Joined
- Jul 10, 2013
- Messages
- 73
How would one make it so units don't die or take damage when a transport they are in dies?
This will not make the unloaded unit vulnerable because with triggering unit you are referring to the unit who finishes casting the ability I think, so you are referring to the transport. I don't think it's possible to detect if a unit is unloaded with normal events, the only way should be use Bribe's GUI Unit Event.
unload
Events
Unit - A unit Finishes casting an ability Conditions
(Ability being cast) Equal to Unload (editor)(Q) Actions
Unit - Make (Triggering unit) Vulnerable
- Detect when a unit is loaded into a transport
Event: Game - CargoEvent Becomes Equal to 1.00
Unit: CargoTransportUnit[UDex] --- The unit who loaded this unit
- Detect when a unit is unloaded from a transport
Event: Game - CargoEvent Becomes Equal to 2.00
Unit: CargoTransportUnit[UDex] --- The unit who unloaded this unit
These triggers will not work for 3 reasons:ah okay! also! I would like to make it so that a vehicle will not work without a hero inside of it (the movement speed will be 0 and it will be unable to attack / use abilities)
here is one set of triggers i tried, but doesnt seem to work
- transport
- Events
- Unit - A unit Is loaded into a transport
- Conditions
- Or - Any (Conditions) are true
- Conditions
- Car (F) (Human) Equal to (Unit-type of (Transporting unit))
- Cobra Striker E92 (C)(human) Equal to (Unit-type of (Transporting unit))
- Actions
- Unit - Set (Transporting unit) movement speed to 450.00
- transport unload
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Unload (editor)(Q)
- Or - Any (Conditions) are true
- Conditions
- Car (F) (Human) Equal to (Unit-type of (Transporting unit))
- Cobra Striker E92 (C)(human) Equal to (Unit-type of (Transporting unit))
- Actions
- Unit - Set (Transporting unit) movement speed to 0.00
You can force the editor to put some value that normally cannot be inserted by pressing and holding shift, while you are holding shift click enter or double click in the value which you want to change then you can release shift and put every value you want.I wonder if it is because the editor won't let me set the Gameplay constants to 0? It only lets me go to 1.