| 11-09-2004, 08:15 PM | #1 |
ok, what i want to do is have a unit rotate on its axis to face diff directions using arrow keys or hotkeys, this is not the problem, after the person stops rotating i want them to press one button(up arrow or hotkey) to move(instantly) in the direction the unit is facing. I dont want this to involve the unit actually moving itself(im using buildings), so basicly my question is: can you store the angle a unit is facing then use that info to move the unit correctly? -not quit sure if i explained this good if not plz tell me ![]() |
| 11-09-2004, 08:21 PM | #2 |
So you want to move a unit without actually moving it? Why not NOT use buildings? They keep any data they had as buildings afterwards (such as training and the likes) I think... I don't understand... Anyway, use either the units custom value or a variable. PS: For instantly, you NEED a hotkey, as arrows have a delay (no way round it). |
| 11-09-2004, 08:31 PM | #3 |
ok, i dont have to use buildings its just that the only thing i want the unit to have is the 4 dummy spells for movment. ex: lets say w.a.s.d are my up down left and right. if the person uses either a or d(left or right) then the unit does not move just rotates. if the person preses w then the unit will start to move in the direction it was facing. hope that cleared it up. ps i didnt get what you ment "use the units custom value" thanks- |
| 11-09-2004, 08:52 PM | #4 |
ok, now i figured it out, i needed to use the polar offset trigger. so for anyone else who wnted to know this, there are three data spots to fill in(on the trigger) the first is were to(you normaly chose position of the unit) the second number is how far, and the third you need to scroll and select unit facing degree or somthing then select the unit youve been doing. hope this helps somone |
