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?
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#3
RE: making your character collapse?

(05-25-2013, 03:58 AM)ROMul8r Wrote:
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.

alright, i'll throw that in the script and see if i get what i'm looking for
05-25-2013, 04:11 AM
Find


Messages In This Thread
RE: making your character collapse? - by PixelHurricane - 05-25-2013, 04:11 AM



Users browsing this thread: 1 Guest(s)