- Joined
- Jun 28, 2008
- Messages
- 688
An ability I'm making is not working as it is intended to. The ability lays "net traps" on the ground, which are supposed to activate when an enemy comes close enough. Once activated, the trap ensares any nearby enemies for a duration.
The ability is based off of channel and has the orderID flamestrike.
Note: To make the traps activate, I have given them the "Mine - Exploding" ability.
The problem lies in the ensaring instance. The map is pinged, the dummy units are created, and vision is granted, but the enemies are not ensared. I would greatly appreciate if anyone could help to figure out why.
The ability is based off of channel and has the orderID flamestrike.
Note: To make the traps activate, I have given them the "Mine - Exploding" ability.
-
Rope Trap
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Rope Trap
-
Actions
- Set net_point = (Target point of ability being cast)
- Unit - Create 1 Net for (Owner of (Triggering unit)) at net_point facing Default building facing degrees
- Custom script: call RemoveLocation(udg_net_point)
-
Events
-
Rope Trap Actv
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Net
-
Actions
- Set net_point = (Position of (Dying unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 350.00 of net_point matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True))) and do (Actions)
-
Loop - Actions
- Set net_target = (Position of (Picked unit))
- Cinematic - Ping minimap for (Player group((Owner of (Dying unit)))) at net_target for 1.00 seconds
- Unit - Create 1 dummeh for (Owner of (Dying unit)) at net_target facing Default building facing degrees
- Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
- Unit - Add Net to (Last created unit)
- Unit - Set level of Net for (Last created unit) to (Level of Rope Trap for Player[(Player number of (Owner of (Dying unit)))])
- Unit - Order (Last created unit) to Orc Raider - Ensnare (Picked unit)
- Unit - Grant shared vision of (Picked unit) to (Owner of (Dying unit))
- Wait until (((Picked unit) has buff Ensared ) Equal to False), checking every 1.00 seconds
- Unit - Deny shared vision of (Picked unit) to (Owner of (Dying unit))
-
Loop - Actions
- Custom script: call RemoveLocation(udg_net_point)
-
Events
The problem lies in the ensaring instance. The map is pinged, the dummy units are created, and vision is granted, but the enemies are not ensared. I would greatly appreciate if anyone could help to figure out why.