🏆 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!
There doesn't exist a location in real, or? You work with reals only.
But if you want to change the concept to rects, maybe it's better first to make the current code rect-compatible and then go further.. else it willbe harder later.
Why a loop is needed? Check if the id is valid, and if yes you set point[id] = point[id+1], or to point[1] if it was last, or do nothing if it was the only patrol point.
Yah, just give user much power do modify unit's patrols as easy as possible.
Maybe a cool feature would be to link a new real to each way point. So this real would define the new movementspeed the unit gets if it reaches it.
This way the unit could run with different speeds between the points. Though it would be just an addidition, in case the user wants it.
I think you have wrong thoughts of me. but it's ok, and no I don't take it as offense.
I think speed is important, but efficiency is usually more important than pure performance, so I'm not a speed freak.^^
But using "thisytpe" as you mentioned is just nice because you can use it in any struct and you don't have to write the exact name.. it's easier to use inside a struct.
If it works fine, it doesn't matter what you use. ^^ I don't want to convince anyone of what I'm doing. :d
But wrapping all into the struct would look more clean and readable, especially with this seperated globals block and the init function at the moment.
Yah, I think me personaly would do like in my example. It's just copy & paste and modify it to your needs...
or also muzzel's suggestions seems good to start one timer per instance, and attach data to it.
Does your code even work correctly? I'm not sure it does.. ^^
Also you can just create a private static method onInit inside struct instead of the init function
and globals could be static variables inside struct
I feel you, starting a huge project is a mistake in the first place as boredom might coming along the way. I should start giving respect point to people whom sticking on a big project over years and on. :/
Det tragiska är att detta händer överallt, svenska bankägare t.ex. tjänade över 42 miljarder svenska kronor 2013 och hoppas på att få 50 miljarder 2014. Det är mer än någon människa kan spendera under sin livstid. Det tråkiga är ju självklart att detta innebär att de rika kommer sitta och spara pengar som aldrig blir spenderade och som därför aldrig går tillbaka till medelklassen. Detta kommer göra att det kommer finnas mindre och mindre pengar att spendera för varje år vilket också innebär mindre och mindre jobb.
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.