Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 27 Apr 2012 08:54 PM |
| I know there is the delay where I can run a function, and move on to the next function, but how would I add parameters? I have the function named Glow and it needs a part in it. This is all part of my tycoon script, and everything in my tycoon runs off of 1 script. Glow needs 1 parameter, the part. How do I do this? The issue is the glow leaves a delay before the button is deactivated, and then gives time for double charging. How can I do this, please answer the question, not alternative methods. Thanks! |
|
|
| Report Abuse |
|
|
thebigbug
|
  |
| Joined: 29 Sep 2008 |
| Total Posts: 886 |
|
| |
|
Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 27 Apr 2012 08:58 PM |
I have delay(0,Glow(btn)) I get the error 'delay requires 2 parameters' How else could I do this? |
|
|
| Report Abuse |
|
|
Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 27 Apr 2012 08:59 PM |
Typo 'delay function requires 2 arguments' |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 27 Apr 2012 09:01 PM |
Wiki says you don't need the function's parameters.
delay(0,Glow) |
|
|
| Report Abuse |
|
|
thebigbug
|
  |
| Joined: 29 Sep 2008 |
| Total Posts: 886 |
|
|
| 27 Apr 2012 09:03 PM |
| Oh. Misunderstanding. Sorry. xD |
|
|
| Report Abuse |
|
|
Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 27 Apr 2012 09:07 PM |
| I want a parameter. Otherwise I cannot tell it what to do -.- |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2012 09:24 PM |
| Delay(0,function() Glow(Parameters) end) |
|
|
| Report Abuse |
|
|