Warcraft III resources & community, 2003–2006 · archived

trigger help

6 posts
#1

trigger help

hi, im making a map based on cars, but i need a trigger to move my car, using cursors, how can i do it¿
#2
It's difficult, but I'll tell you. You need 4 variables, and need to know a lot about triggering.

So when they hit an arrow key, you set a boolean variable like "move forward" to true. Then create another trigger to set it to false when they release the key. Lastly, you make a trigger than goes every .5 seconds to check if that variable it true, to tell if they are holding the front arrow key down, thus creating an action to tell them to move forward, and accelerate.

A bit vague, but you need the help of another since I can't explain all of it.
#3
ok, but my problem is how can i move fowards my unit
#4
you should have a look at the pig map in scenario... and when you pust the up arrow key, you need to add an action ordering the unit to move forward x amount of spae where x is = to your preference on how far you want to go. later.
#5
edit: sorry doouble post, wasnt sure if i clicked button or not.
#6
Actually, it's order X unit to move to (position of (unit) Offset by (X amount) Towards (Facing of (unit))