face Angle (Instantly) or don't turn at all ?

Grags_1977

Ultra Cool Member
Reaction score
32
My map has a block in it which the hero pushes about. When the Unit(Block) is issued an order targeting a Point it turns around to face where it is going, which looks really silly. (please see the attached map as an example)

Things i've played about with
Object Editor - Movement - Turn Rate

Trigger:
  • Unit - Make Block face 90.00 over 0.00 seconds
Still Turns :(

Trigger:
  • Unit - Move Block instantly to TempPoint[1], facing 90.00 degrees
Still Turns :(



As allways any help will be greatly appreciated.
 

Grymlax

Probably not around
Reaction score
138
you could make an invisible dummy unit who do all the walking and then you just move the block to its position with a periodic trigger.
 

DioD

New Member
Reaction score
57
no way.

expect modded models with one big head bone, to setting lookat.
 

Bogrim

y hello thar
Reaction score
154
A unit can't face an angle instantly unless it has 0 movement speed (like a tower). The only other alternative would be replacing the unit with a new unit facing that angle, but I doubt that's a worthwhile compromise.
 

Grags_1977

Ultra Cool Member
Reaction score
32
A unit can't face an angle instantly unless it has 0 movement speed (like a tower). The only other alternative would be replacing the unit with a new unit facing that angle, but I doubt that's a worthwhile compromise.

Replacing the unit worked amazingly well. Thanks a lot +Rep :thup:
 

Romek

Super Moderator
Reaction score
963
> Replacing the unit worked amazingly well. Thanks a lot +Rep
Any variables that were set to the unit you just replaced will no longer 'work'.
 

Grags_1977

Ultra Cool Member
Reaction score
32
> Replacing the unit worked amazingly well. Thanks a lot +Rep
Any variables that were set to the unit you just replaced will no longer 'work'.

Then it's a good job no triggers in my map refer to specific units. Only Units of Type.


EDIT: And even if they did...

Trigger:
  • Set TempPoint[15] = (Position of Block)
    • Unit - Remove Block from the game
    • Unit - Create 1 Block for Neutral Passive at TempPoint[15] facing 90.00 degrees
    • Set Block = (Last created unit)
    • Custom script: call RemoveLocation( udg_TempPoint[15] )


Problem solved ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top