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 MovePlayerForward
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#8
RE: MovePlayerForward

Vengey, good job explaining the rest of the detail & including the part about disabling the player, but I'm not sure if you read the other posts, you've repeated the same mistake as was made above.
A - The MovePlayerForward description says that the function should be called in a timer that updates 60x a second, so the timer should loop every 0.016 seconds rather than 0.12
B - You don't need the 'restart_walk' function to re-declare the timer to call to 'atwalkto', the timer declared in 'atwalkto' can simply call 'atwalkto' again, simplifying the code

void atwalkto(string &in asTimer)
{
    MovePlayerForward(10.0f);
    AddTimer("looper", 0.016f, "atwalkto");
}

(This post was last modified: 07-15-2013, 01:51 PM by Adrianis.)
07-15-2013, 01:50 PM
Find


Messages In This Thread
MovePlayerForward - by Pshyched - 07-03-2013, 04:07 PM
RE: MovePlayerForward - by PutraenusAlivius - 07-03-2013, 04:23 PM
RE: MovePlayerForward - by Adrianis - 07-03-2013, 05:14 PM
RE: MovePlayerForward - by DeAngelo - 07-03-2013, 04:33 PM
RE: MovePlayerForward - by WALP - 07-04-2013, 10:41 AM
RE: MovePlayerForward - by DeAngelo - 07-04-2013, 08:57 PM
RE: MovePlayerForward - by vengey - 07-13-2013, 02:23 AM
RE: MovePlayerForward - by Adrianis - 07-15-2013, 01:50 PM



Users browsing this thread: 2 Guest(s)