I am trying to figure out a way to have only your own units displayed on the minimap while hiding all others. For example, let's say that all players have several Marines, but only the ones under your control are the ones you see on the minimap.
Awesome. I have one more question if you don't mind...
Let's say you have 10 different behaviors and 10 of the same unit. You want each each unit to have one of the different behaviors. How would you accomplish this?
I have tried, "Pick each unit in entire map (at most 1)" -> "Add Behavior 1" and then repeating, but then it just picks the same unit over and over applying the different behaviors.
loop through the behavior array and on each step apply the current behavior to a random unit in the unit group, then remove the unit from the unit group
make an array with all the behaviors
make a unit group with all the potential units
loop through the behavior array and on each step apply the current behavior to a random unit in the unit group, then remove the unit from the unit group
Uh, I feel like an idiot. I just went to "create new variable" but I do not see any behavior option to store.
For minimap visibility: You could do a workaround by making all units not appear on the minimap and having a player's units constantly pinged for that player. Create a custom ping and you can make it look like those colored squares that appear with a unit's minimap appearance set to something bigger than 0.
For minimap visibility: You could do a workaround by making all units not appear on the minimap and having a player's units constantly pinged for that player. Create a custom ping and you can make it look like those colored squares that appear with a unit's minimap appearance set to something bigger than 0.
Hrm, that sounds like a good idea, actually. Thanks!
I have one more problem. I have this trigger and for the life of me I cannot figure out why it does not work. It completely fails in every way and sometimes I get abnormal error messages. I checked that the killed units are hallucinations and, indeed, they are.
Events
Unit - Any Unit Dies
Conditions
((Triggering unit) is Hallucination) == true
Actions
UI - Display "text" for (Player group((Killing player))) to Subtitle area
Unit - Set (Killing unit) Life (Percent) to (((Killing unit) Life (Percent) (Current)) - 30.0
Player - Make player 7 treat player (Killing player) as Enemy
Ping - Ping the minimap at (Position of (Killing unit)) for (All players) over 3.0 seconds
General - Wait 20.0 Game Time seconds
Player - Make player 7 treat player (Killing player) as Ally
Thank you very much for any help. You guys have been great.
Greetings,
I am trying to figure out a way to have only your own units displayed on the minimap while hiding all others. For example, let's say that all players have several Marines, but only the ones under your control are the ones you see on the minimap.
Any ideas?
Thank you,
Potfish
You can create dummy behavior and for chosen actors add
Send a "Set Minimap Visibility" actor message to every unit except your own.
Awesome. I have one more question if you don't mind...
Let's say you have 10 different behaviors and 10 of the same unit. You want each each unit to have one of the different behaviors. How would you accomplish this?
I have tried, "Pick each unit in entire map (at most 1)" -> "Add Behavior 1" and then repeating, but then it just picks the same unit over and over applying the different behaviors.
Thank you,
Potfish
I was thinking about doing something like that, but then I realized it wouldn't work. Let me try to explain better.
Player 1 has a Marine and Players 2-6 also have Marines. Each player can see their own Marine on the mini-map but not anyone else's.
@Tolkfan: Go
Uh, I feel like an idiot. I just went to "create new variable" but I do not see any behavior option to store.
I don't think there's a way to set minimap visibility for each player separately.
See attachment.
For minimap visibility: You could do a workaround by making all units not appear on the minimap and having a player's units constantly pinged for that player. Create a custom ping and you can make it look like those colored squares that appear with a unit's minimap appearance set to something bigger than 0.
You could try cloaked, undetectable dummy units attached to the marines. Cloaked units should not show up on the minimap for enemies.
Thanks. You are awesome.
Hrm, that sounds like a good idea, actually. Thanks!
HELP!
I have one more problem. I have this trigger and for the life of me I cannot figure out why it does not work. It completely fails in every way and sometimes I get abnormal error messages. I checked that the killed units are hallucinations and, indeed, they are.
Events
Unit - Any Unit Dies
Conditions
((Triggering unit) is Hallucination) == true
Actions
Thank you very much for any help. You guys have been great.
How are the hallucinations dying? If there is no killing unit then the trigger will fail in an error.