HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] Rotating a unit

12-12-2008, 11:19 PM#1
Darkfox2002
I need help I am trying to make it so that a unit is constantly rotating like they do in Blizzard's Grand Prix map.
12-13-2008, 01:53 AM#2
Ammorth
Trigger:
Collapse Events
Time - Every 0.035 seconds
Conditions
Collapse Actions
Unit - Set Unit facing for ( YourUnit ) to ( Facing of ( YourUnit ) + 2.00 ) degrees

Thats just off the top of my head, so the names may not be correct.
12-13-2008, 02:03 AM#3
Darkfox2002
yeah I don't think they are correct cause I can't seem to find them and tried several things that seemed close but they didn't work
12-13-2008, 02:08 AM#4
Ammorth
Trigger:
Melee Initialization
Collapse Events
Time - Every 0.03 seconds of game time
Conditions
Collapse Actions
Unit - Make (Your unit) face (Facing of (Your unit) + 2.00) over 0.00 seconds
Unit - Make Unit Face Angle
Select your unit
Select arithmetic (use addition)
First value select Unit - Facing Angle - select your unit
Second value select Value - set to 2.00
12-15-2008, 02:13 AM#5
MaD[Lion]
setfacing native has a hardcoded delay, so u cannot rotate a unit at watever speed u want. this is because of facing is a part of animation translation in the engine i think. this is why attacks also has a limit, but lucky u can set attack animation time. but the facing time has a limit tat cant be set to suit watever need.