• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help with bunker system

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,082
Hi :) I got stuck up with a future of my bunker system which I can't make to work and I don't know where the problem is from... Can you help me ?

  • Atack
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Atack !
    • Actions
      • Set TempUnit = (Casting unit)
      • Set TempUnit2 = (Target unit of ability being cast)
      • -------- Setting the custom value of the bunker --------
      • Set TempInteger = (Custom value of TempUnit)
      • -------- Picking all the units in the bunker and ordering them to atack --------
      • Unit Group - Pick every unit in BunkerUnitGroup[TempInteger] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack TempUnit2
And the map atached
 

Attachments

  • BunkerSystem vB4.w3x
    36 KB · Views: 53
Status
Not open for further replies.
Top