• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Picked Unit/Create Unit

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

My plan is simple:
1) I want, if a Unit use a dummy spell based on "Rain of Fire", that each friendly unit in 550 range of Target point ability being casted is picked.
2) For each friendly picked unit, a dummy is created at each friendly picked unit.
3) Each dummy should cast an ability on that picked unit, where the dummy was created for.

I hope you understand what I'm thinking about and can help me =)

I now its not really hard, but sometimes it doesn't work and I don't know why so I ask for help =)

Thanks =)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Rain of Fire
    • Actions
      • Set Temp_Loc_1 = (Target point of ability being cast)
      • Set Temp_Group_1 = (Units within 512.00 of Temp_Loc_1 matching (((Owner of (Matching unit)) is an ally of (Owner of (Triggering unit))) Equal to True))
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_2 = (Position of (Picked unit))
          • Unit - Create 1 Footman for Player 1 (Red) at Temp_Loc_2 facing Temp_Loc_2
          • Unit - Order (Last created unit) to Human Peasant - Repair (Picked unit)
          • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_Temp_Loc_2)
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
 
Last edited:
Status
Not open for further replies.
Top