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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
RADAR System.w3x
Variables
Notes
READ ME
RADAR
RADAR
Init
Init
DO NOT COPY
INFO
Remove Blue
Name
Type
is_array
initial_value
Minimap_Ping
group
Yes
PlayerUnits
unit
Yes
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
HOW TO IMPORT
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
1.) You will need to export the minimap file. It can be found in the Import Manager (F12). Then Import it to your new map.
2.) Change the path of this file to war3mapMap.tga (Case sensitive) in your map
3.) Now that you have the minimap, you will need to copy the trigger titled RADAR. (TIP: Be sure you have "Automatically create unknown variables while pasting trigger data" checked in your world editor preferences. File -> Preferences ->General.)
4.) After the RADAR trigger has been imported you will need to copy the trigger titled Init. The Init trigger creates a unit (in this case the Tinker) for every player and sets it to the unit variable "Player Units".
5.) You're almost done, Now go into the "Advanced -> Game Interface" dialog in your map and change all of the Interface icons labled "Icon - Minimap" to "UI\Widgets\EscMenu\Human\blank-background.blp" (without the quotes)
6.) The last thing you need to do is open the Object Editor (F6) and edit the units used in your map so that they dont appear on the Minimap. To do this change this property "Stats - Hide Minimap Display" to true.
7.) Thats it, Save and test your map. You should now have a working Radar in place of your Minimap.
Enjoy!
Herio-san
This is the trigger that actually pings the units around "Player Units"
RADAR
Events
Time - Every 2 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 3000.00 of (Position of PlayerUnits[(Integer A)]) matching (((Matching unit) is alive) Equal to True).) and do (Actions)
Loop - Actions
If ((Picked unit) Not equal to PlayerUnits[(Integer A)]) then do (Add (Picked unit) to Minimap_Ping[(Integer A)]) else do (Do nothing)
Unit Group - Pick every unit in Minimap_Ping[(Integer A)] and do (Actions)
Loop - Actions
Cinematic - Ping minimap for (All players) at (Center of (Playable map area)) for 1.00 seconds, using a Flashy ping of color ( 25.00 %, 100 %, 25.00 %)
Cinematic - Ping minimap for (Player group((Player((Integer A))))) at ((Center of (Playable map area)) offset by (Distance between (Position of PlayerUnits[(Integer A)]) and (Position of (Picked unit))) towards (Angle from (Position of PlayerUnits[(Integer A)]) to (Position of (Picked unit))) degrees.) for 0.50 seconds
Unit Group - Remove all units of Minimap_Ping[(Integer A)] from Minimap_Ping[(Integer A)] .
This trigger creates a Tinker Hero for every player that is in the game and sets it to "Player Units". The "Player Units" Variable is used to ping units with the RADAR.
Init
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
If (((Player((Integer A))) slot status) Equal to Is playing) then do (Create 1.Tinker for (Player((Integer A))) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
Set Variable Set PlayerUnits[(Integer A)] = (Last created unit)
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across (Playable map area)
Game - Disable ally color button and Disable creep camp button
Camera - Lock camera target for (Player((Integer A))) to PlayerUnits[(Integer A)] , offset by ( 0 , 0 ) using Default rotation
Selection - Select PlayerUnits[(Integer A)] for (Player((Integer A)))
The following trigger is for use in this map only. Importing it to your map may cause errors.
This removes the "Test Players" Hero from the game.
Remove Blue
Events
Map initialization
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) controller) Equal to Computer
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 2 (Blue).) and do (Remove (Picked unit) from the game)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.