Jump to content

How to get the rotation of a reference with a script?


Recommended Posts

Good evening everybody!

 

I already looked on the CK wiki but didn't find anything like GetRotationZ, just GetPositionZ. (To get the rotation on the Z axis)

 

Is there any function like that that would return the rotation value (on a specified axis, like X, Y or Z) for a given reference?

So something like GetRotationX(), GetRotationY(), GetRotationZ().

(Specifically the rotation of one of those "RotateHelperFree" activator - things.

 

 

 

(I need this to get the current rotation value of a reference, increse it by 90° and then make the object slowly rotate to the new position)

Link to comment
Share on other sites

 

I usually use this:

float Angle = Self.GetAngleZ()

Ahhh ...

I was looking for GetRotation, so no wonder I did not find anything!

 

Technically "angle" is the wrong term for this, so that's why I didn't bother serching for that word specifically.

 

But thanks, this really helped me!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...