So I did the code that shrinks Barriers.
I wanted it to only happen for Reinhardt.
Reinhardt’s barrier has shrunk but if I swap to another barrier character after picking Reinhardt, it shrinks their shields as well.
This is my code:
Event: Ongoing Each Player
team All
Player Reinhardt
Conditions
Hero(Reinhardt) ==True
Actions:
Start scaling barriers (event player 0.5 true)
Please help!
“Ongoing” rules only trigger when the conditions are met
So the rule will trigger when they become Reinhardt and will never toggle again until you switch off him and switch back
To fix this, you should have another rule that checks if their hero isn’t Reinhardt, and if so it should stop scaling their barrier
How would I go about that?
I’m relatively new to the workshop, I got it to work by having all 4 other barriers scale back to 1 but obviously this is inefficient so how would I go about doing it your way?
First of all, you shouldn’t need that “Hero(Reinhardt)==True”. Second, add another rule with the condition as “Hero Of(Event Player)!=Hero(Reinhardt)” and for the actions, add “Stop Scaling Barriers”.
1 Like