- Joined
- Feb 4, 2005
- Messages
- 3,971
I want to make my unselectable unit attack this way.
Without using an attack ability and the only reason of having a weapon is to run the whole trigger only if the unit has the specific weapon as a condition:
A missiles effect flying from my flying unit to the ground/point (say 50 range away from my unit's facing) to be created every time the mouse is right-clicked. And ofc damage taken.
I want this for 2 weapons that will attack point. Also in the same way for other 3 weapons, I need to cr8 a trigger with the effect to be created from my unit to the closest enemy unit.
The thing is that it doesnt create the effect at all even for this from unit to point, havent even tried if it will cr8 a laser say from a unit to unit :\
Without using an attack ability and the only reason of having a weapon is to run the whole trigger only if the unit has the specific weapon as a condition:
A missiles effect flying from my flying unit to the ground/point (say 50 range away from my unit's facing) to be created every time the mouse is right-clicked. And ofc damage taken.
-
Attack
-
Events
-
UI - Player 1 clicks Right mouse button Down.
-
-
Local Variables
-
Conditions
-
Actions
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
(Viking weapon 1) == Banshee - Backlash Rockets
-
-
Then
-
Environment - Create Banshee - Screecher Missiles (Persistent) at AttackPoint from Viking
-
Unit Group - Pick each unit in (Any units in (Region(AttackPoint, 2.5)) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
-
Actions
-
Unit - Set (Picked unit) Life to (((Picked unit) Life (Current)) - 100.0)
-
-
-
-
Else
-
-
-
-
Set ( I set this is as a Global Var) AttackPoint = ((Position of Viking) offset by 50.0 towards (Facing of Viking) degrees) <Point>
I want this for 2 weapons that will attack point. Also in the same way for other 3 weapons, I need to cr8 a trigger with the effect to be created from my unit to the closest enemy unit.
The thing is that it doesnt create the effect at all even for this from unit to point, havent even tried if it will cr8 a laser say from a unit to unit :\