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
i forgot how to script :c
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#16
RE: i forgot how to script :c

Let's say you call a timer called TeleportTimer
You call these 2 lines:
AddTimer("Area2", 0, "TeleportTimer");
AddTimer("Area1", 6, "TeleportTimer");


void TeleportTimer(string &in asTimer)
{
if(asTimer == "Area1")
{
TeleportPlayer("Area1");
}

if(asTimer == "Area2")
{
TeleportPlayer("Area2");
}
}

Trying is the first step to success.
12-19-2012, 11:02 AM
Find


Messages In This Thread
i forgot how to script :c - by nightsxp - 12-14-2012, 07:51 AM
RE: i forgot how to script :c - by nightsxp - 12-14-2012, 08:23 AM
RE: i forgot how to script :c - by nightsxp - 12-14-2012, 09:53 AM
RE: i forgot how to script :c - by nightsxp - 12-17-2012, 10:28 AM
RE: i forgot how to script :c - by nightsxp - 12-17-2012, 12:13 PM
RE: i forgot how to script :c - by nightsxp - 12-17-2012, 01:31 PM
RE: i forgot how to script :c - by nightsxp - 12-17-2012, 01:11 PM
RE: i forgot how to script :c - by nightsxp - 12-19-2012, 06:53 AM
RE: i forgot how to script :c - by nightsxp - 12-19-2012, 08:56 AM
RE: i forgot how to script :c - by FlawlessHappiness - 12-19-2012, 11:02 AM
RE: i forgot how to script :c - by Your Computer - 12-19-2012, 11:28 AM
RE: i forgot how to script :c - by nightsxp - 12-20-2012, 07:57 AM
RE: i forgot how to script :c - by nightsxp - 12-20-2012, 08:10 AM
RE: i forgot how to script :c - by Your Computer - 12-20-2012, 08:20 AM
RE: i forgot how to script :c - by nightsxp - 12-20-2012, 08:42 AM
RE: i forgot how to script :c - by nightsxp - 12-23-2012, 03:29 PM
RE: i forgot how to script :c - by nightsxp - 01-03-2013, 08:02 AM
RE: i forgot how to script :c - by Statyk - 01-03-2013, 08:06 AM
RE: i forgot how to script :c - by nightsxp - 01-03-2013, 08:27 AM



Users browsing this thread: 4 Guest(s)