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
#7
RE: Unwanted teleportation loop

void MovePlayerTimer(string &in asTimer)
{
MovePlayerForward(5.0);
AddTimer("MovePlayer", 0.1, "MovePlayerTimer");
AddTimer("ShowFirstMessage", 3.0, "ShowFirstMessageTimer");
}

This timer is repeatedly calling itself.
Meaning it's also calling this timer:

void ShowFirstMessageTimer(string &in asTimer)
{
//SetMessage("TextDisplay", "FirstMessage", 5.0);
AddTimer("NextStart", 3.0, "NextStartTimer");
}

Meaning it's also calling this timer:

void NextStartTimer(string &in asTimer)
{
TeleportPlayer("PlayerStartArea_3");
AddTimer("DisablePSA3", 0.1, "DisablePSA3");
}


You're literally teleporting yourself over and over, because the timer is repeating.

Trying is the first step to success.
(This post was last modified: 11-06-2014, 02:51 PM by FlawlessHappiness.)
11-06-2014, 02:50 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 ShadowTV - 11-06-2014, 01:45 PM
RE: Unwanted teleportation loop - by ShadowTV - 11-06-2014, 02:29 PM
RE: Unwanted teleportation loop - by FlawlessHappiness - 11-06-2014, 02:50 PM
RE: Unwanted teleportation loop - by ShadowTV - 11-06-2014, 02:57 PM



Users browsing this thread: 1 Guest(s)