• 🏆 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!

Ping current item location on minimap

Status
Not open for further replies.
Level 12
Joined
Sep 11, 2011
Messages
1,176
Hello,

Like thread I would like to know how to make that item which is picked by other player would be pinged on minimap every xx seconds, at its current location? Even if fog of war is enabled/disabled ?

  • Pick
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Unit Group - Add (Triggering unit) to tempGroup
      • Trigger - Turn on Loop <gen>
  • Loop
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Position of (Picked unit))
          • Cinematic - Ping minimap for (All players) at tempPoint for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 100.00%)
          • Custom script: call RemoveLocation (udg_tempPoint)


  • Drop
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Unit Group - Remove (Triggering unit) from tempGroup
      • Trigger - Turn off Loop <gen>


that should do the job.
 
Level 10
Joined
Nov 3, 2009
Messages
686
Hm..
Firstly, sorry.
Secondly, thanks for helping.
Finally, could you make trigger that 2 items(flags in this situation) would be pinged on minimap, even if dropped, picked and anything else, just pinged on the minimap their current location every xx.xx seconds. :D?
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
Hm..
Firstly, sorry.
Secondly, thanks for helping.
Finally, could you make trigger that 2 items(flags in this situation) would be pinged on minimap, even if dropped, picked and anything else, just pinged on the minimap their current location every xx.xx seconds. :D?

  • Ping Item
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Picked item)) Equal to Your Flag
            • Then - Actions
              • Set tempPoint = (Position of (Picked item))
              • Cinematic - Ping minimap for (All players) at tempPoint for 1.00 seconds
              • Custom script: call RemoveLocation (udg_tempPoint)
            • Else - Actions
make sure you don't have any flag other than those two flag.
you should also make the latest trigger i gave you, so when the item is picked, the ping will follow your unit.
 
Status
Not open for further replies.
Top