Detecting the roll/pitch of a unit

DeepThought

New Member
Reaction score
1
I've got a problem.

I want to do something like this:

Trigger:
  • Lock unit
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Center of (Playable map area)) offset by (Facing of (Triggering unit)) towards 100.00 degrees)


But instead of "facing of (triggering unit)" want it to be "roll (or pitch) of triggering unit". Now, I know this is not possible through GUI. But can you detect roll or pitch in JASS? I hope this isnt too vauge, but im in a hurry.

thanks
 

RaiJin

New Member
Reaction score
40
what do u mean roll or pitch? explain

plus your trigger leaks.. do this

Code:
Untitled Trigger 002
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Set Point1 = (Center of (Playable map area))
        Set Point2 = (Point1 offset by (Facing of (Triggering unit)) towards 100.00 degrees)
        Unit - Move (Triggering unit) instantly to Point2
        Custom script:   call RemoveLocation(udg_Point1)
        Custom script:   call RemoveLocation(udg_Point2)
 

DeepThought

New Member
Reaction score
1
Im aware that this leaks, but I just hacked that together for a quick post.

What I mean by roll/pitch is when a unit is on a hill, they tilt slightly because of the angle of the slope. In the object editor, there is a field "maximum Pitch Angle" and "Maximum Roll Angle" that you can change. Considering it is possible to detect facing angle, flying hight and all that stuff, I was wondering if you could detect roll/pitch as well.
 
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