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 Adding Delays
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#8
RE: Adding Delays

void OnStart()
{
AddTimer ("FunctionXY_1", 10.0f, "FunctionXY")
}

void FunctionXY (string &in asTimer)
{
if(asTimer == "FunctionXY_1")
{
thingXY()
AddTimer ("FunctionXY_2", 1.0f, "FunctionXY ")
}

if(asTimer == "FunctionXY_2")
{
thingZ()
}
}



How does this look to you? Smile

Trying is the first step to success.
(This post was last modified: 11-23-2013, 01:37 AM by FlawlessHappiness.)
11-23-2013, 01:37 AM
Find


Messages In This Thread
Adding Delays - by RaideX - 11-22-2013, 07:12 PM
RE: Adding Delays - by ExpectedIdentifier - 11-22-2013, 07:50 PM
RE: Adding Delays - by RaideX - 11-22-2013, 07:58 PM
RE: Adding Delays - by ExpectedIdentifier - 11-22-2013, 08:00 PM
RE: Adding Delays - by RaideX - 11-22-2013, 08:07 PM
RE: Adding Delays - by ExpectedIdentifier - 11-22-2013, 08:09 PM
RE: Adding Delays - by RaideX - 11-22-2013, 08:14 PM
RE: Adding Delays - by FlawlessHappiness - 11-23-2013, 01:37 AM
RE: Adding Delays - by RaideX - 11-23-2013, 11:06 AM
RE: Adding Delays - by FlawlessHappiness - 11-23-2013, 12:01 PM
RE: Adding Delays - by RaideX - 11-23-2013, 12:53 PM
RE: Adding Delays - by FlawlessHappiness - 11-24-2013, 07:29 PM



Users browsing this thread: 2 Guest(s)