how to reset a entity's rotation

Just starting out? Need help? Post your questions and find answers here.
xenopsyx
User
User
Posts: 10
Joined: Wed Mar 01, 2006 3:10 pm

how to reset a entity's rotation

Post by xenopsyx »

RotateEntity() is like MoveEntity().
I want to find some Rotation Function that set x,y,z like EntityLocate().
can you help me?
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

Yes,

RotateEntity(ENT, ang, #ABSOLUTE) or similar would be nice, so would GetEntityRotation(ENT), but they are not present!

For now you have to store the current rotation in a variable so you can restore the rotation when you need it :(

Hopefully, Fred will bridge the gap soon :)
Paid up PB User !
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

In v4, it's now absolute.
Post Reply