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
RaideX Offline
Member

Posts: 212
Threads: 33
Joined: May 2013
Reputation: 7
#11
RE: Adding Delays

Alright, i stumbled upon another problem.

Is it possible for a function to take more parameters than default?

For instance:

Can i add a timer inside a function that calls the function again and takes the name of the timer?

So instead of this:
PHP Code: (Select All)
void CollideFunction(string &in asParentstring &in asChildint alState)
{
AddTimer ("ExecFunctionXY_1"10.0f"FunctionXY"

this:
PHP Code: (Select All)
void CollideFunction(string &in asParentstring &in asChildint alStatestring &in asTimer)
{
firstthingtohappen();
AddTimer ("ExecFunctionXY_1"1.0f"CollideFunction")
if (
asTimer == "ExecFunction_XY1") {
delayedthing();


I tried it but it doesnt seem to work. Maybe there's another way in doing this?

If you don't draw first, you don't get to draw at all... -The False Shepherd
(This post was last modified: 11-23-2013, 12:56 PM by RaideX.)
11-23-2013, 12:53 PM
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: 4 Guest(s)