Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / How do I set an entity's rotation, without rotating from the current rotation?

Author
Message
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 23rd Feb 2012 08:15
For example, with rotatey etc, they rotate the entity from their current angle, for example, if they are facing 180 degrees, they would appear different than they would if they were facing 90 degrees first, I want to be able to set the rotation. Is this possible?

-TZK

Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 23rd Feb 2012 08:35
entrotatex=x - rotate entity angle x to x
entrotatey=x - rotate entity angle y to x
entrotatez=x - rotate entity angle z to x
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 23rd Feb 2012 08:54
@Scene Commander
Already tried them, they rotate from the current angle, not a set angle.

-TZK

The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 23rd Feb 2012 09:19
oh, another thing, is there a command to reset an entity? Like position, animation etc, this would make ragdolls animating after death possible, because in my player body script, I have third person deaths set up perfectly, but re-animating the entity is a problem. Should I try multiple lives?

-TZK

Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 23rd Feb 2012 09:21
Try using setvar=$EAX X, the $EAX, $EAY, $EAZ variables are internal variables which store the angle rotation information, and IIRC they can be manually set.


Specs: Alienware M17x R3. i7-2630QM. 8GB RAM. Nvidia 560m. Momentus XT Hybrid Drive.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 23rd Feb 2012 09:23
@Marc
Thanks, I'll try that later, right now I'm playing around with these awesome third person deaths, as a joke I may make a video later with the source engine death sound for the player

-TZK

Login to post a reply

Server time is: 2026-07-01 22:13:01
Your offset time is: 2026-07-01 22:13:01