Posts
517
Respect
165Add +1
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I have trouble with this script. I am trying to make so you will have to press 4 buttons and then thread a function.
But ingame it threads the function if I only press 2 of the buttons. Why is this happening? In my script it says 4 buttons but ingame it threads after 2 hits.
Thanks in advance.
I'm new to scripting so maybe not the best answer but worth a shot until someone better at scripting can help if it doesn't work.
Try something more like this?
Looks fine to me...
Shot in the dark... You don't call main more than once do you?
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
main only once.
Couldn't hurt to try though yeah?
I use a similar script in my map. I noticed it was adding a number already cuz I accidentally had two trigs with the same targetname. So I'd say check the target names make sure none are accidentally the same or with typo.
Sorry, just thought it might be 4 cause it ups the level variable twice, maybe. Did you check the level.switchs_hit with an iprintln after the waittill trigger? If counting by twos, then something is doubling. You could just make it 8 if you can't figure it out. If it counts by 1s and is working on 2, then sorry for wasting your time, cause I'm out of ideas.
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Why is this happening? In my script it says 4 buttons but ingame it threads after 2 hits.
You don't call main more than once do you?
I call main only once.
Did you check the level.switchs_hit with an iprintln after the waittill trigger? If counting by twos, then something is doubling.
Also, I solved it, it was something I did wrong in the script simply. Thanks for he help anyways, but sorry for wasting YOUR time. xD
Mind saying what the error was?
The script was called twice in mapname.gsc which dublicated the amount of times you pressed the buttons.
but I give the best answer to prox