Share Vehicles
Thu 23 Feb 2006, 17:13
OKi this is a Trigger for sharing vehicles found on the map
Select the vehicle an load in it
Select the vehicle an load in it
- Code:
Get in
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Load Vehicle
(Owner of (Target unit of ability being cast)) Equal to Neutral Passive
Or - Any (Conditions) are true
Conditions
(Unit-type of (Target unit of ability being cast)) Equal to YOURCAR
(Unit-type of (Target unit of ability being cast)) Equal to YOURTANK
Actions
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Wait 0.10 seconds
Unit - Order (Target unit of ability being cast) to Load (Casting unit)
- Code:
Get out
Events
Unit - A unit Finishes casting an ability
Unit - A unit Is issued an order with no target
Conditions
(Ability being cast) Equal to unload (Transports aériens)
Actions
Wait 0.10 seconds
Unit - Change ownership of (Casting unit) to Neutral Passive and Change color
Permissions in this forum:
You cannot reply to topics in this forum