🏆 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!
has anyone found something that allows you to move forward as long as you have W held down? or does it have to be in Custom Code like in WC3 for sliding
Global - boolean - IsKeyDown = false <default>
Global - unit - U = yourHero01 <default>
####################
Events
- When Player presses W down.
Local Variables
- Local - point - P = noPoint
Conditions
-
Actions
- set IsKeyDownW = true
- while
- conditions
- - IsKeyDownW = true
- actions
- - set P = ((Position of unit) towards (facing of U))
- - if (IsPathable(P, PATHING_GROUND) == false) then
- - - set IsKeyDownW = false
- - else
- - - move U to P
- - endif
- endwhile
####################
####################
Events
- When Player presses W up.
Local Variables
-
Conditions
-
Actions
- set IsKeyDownW = false
####################
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.