Sliding triggers - wont turn

Furberg

Ultra Cool Member
Reaction score
45
So why isn't the unit turning? The periodic timer on slide is currently 0.01 (to make it reallly smooth) but if i change to 0.02 he turns a LITTLE bit if i spam-click. Here is triggers:

Code:
Slide
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Set tempGroup = (Units of type Camper)
        Unit Group - Pick every unit in tempGroup and do (Actions)
            Loop - Actions
                Set tempPoint = (Position of (Picked unit))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Terrain type at tempPoint) Equal to Ashenvale - Vines
                    Then - Actions
                        Set tempPoint1 = (tempPoint offset by 3.80 towards (Facing of (Picked unit)) degrees)
                        Unit - Move (Picked unit) instantly to tempPoint1
                        Custom script:   call RemoveLocation(udg_tempPoint1)
                    Else - Actions
                Custom script:   call RemoveLocation(udg_tempPoint)
        Custom script:   call DestroyGroup(udg_tempGroup)

Code:
Turn
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
        (Unit-type of (Ordered unit)) Equal to Camper
        (Terrain type at (Position of (Triggering unit))) Not equal to Ashenvale - Vines
    Actions
        Set tempPoint = (Position of (Ordered unit))
        Set tempPoint1 = (Target point of issued order)
        Unit - Move (Ordered unit) instantly to tempPoint, facing tempPoint1
        Custom script:   call RemoveLocation(udg_tempPoint)
        Custom script:   call RemoveLocation(udg_tempPoint1)
 

Kershbob

New Member
Reaction score
30
Moving a unit instantly resets it's order to nothing (I think) which may be interfering with your second trigger.
 

Furberg

Ultra Cool Member
Reaction score
45
Moving a unit instantly resets it's order to nothing (I think) which may be interfering with your second trigger.

Well.. it shouldn't because the move is so instant that the other trigger wont have time to interfer. But i don't know.. It's stressing me out.
 

Furberg

Ultra Cool Member
Reaction score
45
ROFLMAOUMGEIFF!!!1111 I found out why i didn't work. Dude i wrote
Code:
Turn
    Conditions
        (Terrain type at (Position of (Triggering unit))) [B]Not Equal to[/B] Ashenvale - Vines

when it should be:

Code:
Turn
    Conditions
        (Terrain type at (Position of (Triggering unit))) [B]Equal to[/B] Ashenvale - Vines

Ah lol! thanks for the little tip (should have thought of that :p). +rep you are a lifesaver!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top