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
Script Help making your character collapse?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: making your character collapse?

The Wiki Wrote:void FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);

Rotates the position of the camera on the player's body.
afX - angle of rotation of head, positive being counter-clockwise
afSpeedMul - speed (possibly acceleration) multiplier of the rotation (default 1, which is really slow)
afMaxSpeed - maximum speed of rotation
That one should allow the player to roll over onto their side. Have an example:
PHP Code: (Select All)
void FadePlayerRollTo(30.0f1.0f3.0f); 
This will roll the player onto their side at 30 x value.
Will move the player down there fairly slowly.
And the maximum speed of the fall is 3 Smile

Just put it into a CollideCallback event with a ScriptArea.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-25-2013, 03:58 AM by Romulator.)
05-25-2013, 03:58 AM
Find


Messages In This Thread
RE: making your character collapse? - by Romulator - 05-25-2013, 03:58 AM



Users browsing this thread: 2 Guest(s)