• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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
687
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