Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animations
Hauken Offline
Member

Posts: 62
Threads: 19
Joined: Jul 2012
Reputation: 1
#1
Animations

Hi,

I've been wondering if its possible to animate props to go in a direction.

Picture a chain model the tall one we have, can u like animate it depending on the axis and make an animation?

Cryengine has theese kinds of tools in the editor, but as far as I've seen Frictional did everything with animations files?

If there is - are there any tutorials describing this?

EDIT: If you guys dont understand what im asking just tell me I can try to explain better.
(This post was last modified: 07-19-2013, 08:03 PM by Hauken.)
07-19-2013, 05:29 PM
Find
Karba Offline
Junior Member

Posts: 40
Threads: 5
Joined: Jul 2013
Reputation: 2
#2
RE: Animations

Ive seen it in a few custom stories, but i have no idea how to do it.
Heres one of those stories

http://www.frictionalgames.com/forum/thread-15476.html

It contains a part where a giant worm digs a tunnel in front on the player.

download it, and you should be able to find the function somewhere within.

If you scream for 8 years, 7 month and 6 days you have produced enough energy to warm a cup of coffee
(This post was last modified: 07-21-2013, 01:03 AM by Karba.)
07-21-2013, 12:59 AM
Find
Hauken Offline
Member

Posts: 62
Threads: 19
Joined: Jul 2012
Reputation: 1
#3
RE: Animations

(07-21-2013, 12:59 AM)Karba Wrote: Ive seen it in a few custom stories, but i have no idea how to do it.
Heres one of those stories

http://www.frictionalgames.com/forum/thread-15476.html

It contains a part where a giant worm digs a tunnel in front on the player.

download it, and you should be able to find the function somewhere within.
Finally an answer - I think I asked a hard question here..

I will check it out thanks.
07-21-2013, 01:53 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Animations

An animated entity is made with animations from a modeling program. But you can make entities move by giving it a force but it only flings or pushes the object

07-22-2013, 08:56 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#5
RE: Animations

If you want to move the model along the X/Y/Z axises. You can change the model into a "MoveObject" in the ModelEditor>Settings>User Defined Variables.

(1) So open up 2 separate ModelEditors, in one, open up the Amnesia Piston (Entities>special>control_room_piston_piston). In the second open up your model.

(2) Open up the Menu>Settings>User Defined Variables. And match up your model's properties with Amnesia's Pistons, and save it out.

Use
SetMoveObjectState(string& asName, float afState);
asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween (and above, for example, the bridge_metal_vert) are valid too!


or
SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);
asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween are valid too!
afAcc - acceleration
afMaxSpeed - maximum speed
afSlowdownDist - Distance to the target state before decceleration occurs.
abResetSpeed - Set to True if the prop's speed should be reset before performing the movement, else the prop will accelerate from it's current speed to afMaxSpeed.
to move your new object.

////////////////
If you want to change the distance the object goes in a certain direction, or the Axis it travels on.

Go back to your User Defined Variables in the ModelEditor and scroll down.

Near the bottom starting with "OpenAmount" and ending with "CloseSpeed". Will be the variables you will want to change.

Note: The "OpenAmount" correlates to the height of the object. If you double the "OpenAmount", the height will simple increase 2x.

So I would set the "OpenAmount" to something like 10, and then use the MoveObject scripts and set the "float afState" anywhere between 0-1, and since it's a float you can fine tune the value of movement.
07-22-2013, 09:24 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#6
RE: Animations

(07-21-2013, 12:59 AM)Karba Wrote: Ive seen it in a few custom stories, but i have no idea how to do it.
Heres one of those stories

http://www.frictionalgames.com/forum/thread-15476.html

It contains a part where a giant worm digs a tunnel in front on the player.

download it, and you should be able to find the function somewhere within.
Joachim being active on the forums....WHAT IS THIS SORCERY?!?
07-23-2013, 10:13 AM
Find




Users browsing this thread: 1 Guest(s)