🏆 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!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
I've got a hero selection system, however everytime I pick a hero it allows me to pick another hero. How can I stop it from happening? I've made the Gameplay constants to only my custom heroes.
You could make an simple boolean, named something like "Hero_Sected" and when somone picks a hero, you set "Hero_Sected" equal to True, then make an if - then - else action, if Hero_Sected Equal to True - Clear Selection for (Triggering Player), else (your action)
I agree with MYHummeR, just make a Boolean variable and when they pick a hero check if the variable is True (already selected hero). If it is then cancel the hero selection and if its not then give them the hero and set the variable to True.
Why don't you make it that the unit that select's the unit, and remove it from game
Like : Wips are the unit you choosen for selecting your unit, make that the triggering unit
with conditions, than make a loop that will remove the triggering unit, hope it clears up
(this goes for every heroes, so alot of these things for alot of heroes
I've got a hero selection system, however everytime I pick a hero it allows me to pick another hero. How can I stop it from happening? I've made the Gameplay constants to only my custom heroes.
It leaks, you could select the hero what is selected and spawned in-game by another player and get it...
Now this works for me, If you need something more, just ask...
Get 2 rects/regions:
1. Is rect/region where heros what can be selected and played stands
2. Is the rect/region where selected hero will be moved from Hero selection area to rect/region where hero should spawn...
The Trigger's (Here is trigger with multiplayer example):
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.