Frictional Games Forum (read-only)
How do I make a "Entity" rotate? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do I make a "Entity" rotate? (/thread-30142.html)



How do I make a "Entity" rotate? - Amnesiaplayer - 06-19-2015

I need to rotate my entity.
Please don't say that my entity HAS to be a StaticObject.
the thing I want is, a moving rock, from ground (Custom made in maya, it's Set move object)
Some things happen like sounds, bricks flying over the place etc etc, and then this thing comes up (from ground) and go higher, and stops later.
To make it more "cool" I want that rock kinda thing rotate.
But the problem is, I need StaticObject... but I also need it to be a Set move object..

PHP Code:
Rotates the prop up to a set speed.

asName internal name
afAcc 
acceleration
afGoalSpeed 
desired speed
afAxisX 
rotation around X axis
afAxisY 
rotation around Y axis
afAxisZ 
rotation around Z axis
abResetSpeed 
determines whether the speed is resetted after goal speed is reached
asOffsetArea 
the area to rotate around, if empty, then the center of the body is used *NoteThe entity you want to rotate MUST be a “StaticObject” entity!* 

How am I going to "make this happen"
Sad


RE: How do I make a "Entity" rotate? - FlawlessHappiness - 06-19-2015

You change the entity type to "Object" and SubType to "Static".

EDIT: Scratch that. I was foolish enough to not read your full post. Give me a moment.

You can just use a MoveObject. If the object isn't moving it's automatically "static"


RE: How do I make a "Entity" rotate? - Amnesiaplayer - 06-19-2015

(06-19-2015, 07:57 PM)FlawlessHappiness Wrote: You change the entity type to "Object" and SubType to "Static".

EDIT: Scratch that. I was foolish enough to not read your full post. Give me a moment.

You can just use a MoveObject. If the object isn't moving it's automatically "static"

Yh it worked xD
I tried this first, but it gave me an error.
So I thought it was because it is not an Static object.
but I made a mistake, now it works Tongue