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 Simulate the player being dragged ?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Simulate the player being dragged ?

This might be something to start off with.

void OnStart()
{
     MovePlayerHeadPos(0, -0.9f, 0, 10.0f, 0.1f);
     SetPlayerActive(false);
     AddTimer("drag", 3.0f, "PlayerDrag");
}

void PlayerDrag(string &in asTimer)
{
    AddPlayerBodyForce(8000, 0, -8000, false);
    AddTimer(asTimer, 1.5f, "PlayerDrag");
}

But sometimes, try checking through all the scripts yourselves. You learn quicker Smile
03-08-2014, 08:54 PM
Find


Messages In This Thread
RE: Simulate the player being dragged ? - by Neelke - 03-08-2014, 08:54 PM



Users browsing this thread: 1 Guest(s)