• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Using temporary vars really too many times

Status
Not open for further replies.
Hello again (it's the third topic in two weeks after several months o.o my searches have failed x.x )

I found out that I'm having troubles with temporary variables messing up, after some time reading and reading the same code.

I'm using the same tempInteger or tempUnit in about 50 functions, and about 5~6 can run at the same time. None of them use waits, only timers (and thus a new function).

However it happens as if there was a wait. So, if a funcion runs before the previous one finishes, everything goes like "s* x.x", get it? xD

Is there any risk of another function override the previous one, even though they're almost "instant"?

Thanks for reading (I just can't write a small text x.x)
Hossomi-sama
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
If the functions are instant as in no timers no waits, then you have no problem.
But if you are using timers and global variables, than you will have a problem.
 
Status
Not open for further replies.
Top