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
Unwanted teleportation loop
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Unwanted teleportation loop

To make a player walk forward you need to call the script-line, MovePlayerForward, once every 0,1 second.
You're only calling it once, meaning nothing really happens.

Simply create your own function that can repeat itself. Like this:

PHP Code: (Select All)
void MovePlayerForward(string &in asTimer)
{
if(
GetLocalVarInt("StopTimer") == 0)
{
MovePlayerForward(1.0);
AddTimer(""0.1"MovePlayerForward");
}


Now to stop the timer use this line: SetLocalVarInt("StopTimer", 1);

Trying is the first step to success.
11-06-2014, 12:07 PM
Find


Messages In This Thread
Unwanted teleportation loop - by ShadowTV - 11-05-2014, 09:50 PM
RE: Unwanted teleportation loop - by DnALANGE - 11-05-2014, 10:44 PM
RE: Unwanted teleportation loop - by FlawlessHappiness - 11-06-2014, 12:07 PM
RE: Unwanted teleportation loop - by ShadowTV - 11-06-2014, 01:45 PM
RE: Unwanted teleportation loop - by ShadowTV - 11-06-2014, 02:29 PM
RE: Unwanted teleportation loop - by ShadowTV - 11-06-2014, 02:57 PM



Users browsing this thread: 1 Guest(s)