Warcraft III resources & community, 2003–2006 · archived

Anyone know how to do this ?

8 posts
#1

Anyone know how to do this ?

How u can make unit turn to right by pressing right arrow key and after u relase it, it will stop turning... like in FPS games or is it even possible?

I nearly got it working put it just only turned to specific angles.
#2
Yes its possible, just fiddle fart with the triggers im pretty sure you'll find it.
#3
Yes.. i got it finally working, but i think there must be better way to do it

If someone knows good way to do it.. let me know :lol:
#4
MounaYes.. i got it finally working, but i think there must be better way to do it

If someone knows good way to do it.. let me know :lol:


pretty much the only way i can think of is

event - player X presses right arrow key
actions - set bRight[player number of triggering player] = true

event - player X releases right arrow key
actions - set bRight[player number of triggering player] = false

event - every 0.5 seconds (or whatever)
actions -
for LoopA = 0 to nMaxPlayers
+ if bRight[LoopA] == true then
+ + unit - make (PlayerUnit) face (facing direction of (PlayerUnit) - 8.00) degrees over 0.00 seconds

etc... with left
#5
Thank you.. that was 100x times better trigger than mine! :P
#6
i got it but i cant find this trigger:
unit - make (PlayerUnit) face (facing direction of (PlayerUnit) - 8.00) degrees over 0.00 seconds
#7
Nightmare_NORi got it but i cant find this trigger:
unit - make (PlayerUnit) face (facing direction of (PlayerUnit) - 8.00) degrees over 0.00 seconds


the first part is
'unit - make unit face (direction) over 0.00 seconds

in direction is
'arithmetic'

the first part of arithmetic is
unit - facing angle (or something like that)

the sign of arithmetic of course is '-'

the last part of arithmetic is 8.00 or some number
#8
ah thx a lot :D