Blockland Forums > Modification Help
Scheduling a relay for a brick?
(1/1)
DrenDran:

--- Code: ---function fxDTSBrick::delayRelay(%brick,%time,%client)
{
%brick.schedule(%time,fireRelay);
}

--- End code ---
I'm trying to get it to schedule the brick to fire a relay in %time milliseconds, but it's not working?
Can someone explain this to me?
HellsHero:
First off, %brick.schedule(%time,fireRelay());

Otherwise it won't use it as a function. Might be some other errors, but I'm tired so, eh.
Amade:
Don't listen to HellsHero, you're doing it right.

I don't see any problems other than (I think) fireRelay requires the client to be appended. Add the %client as an argument.
HellsHero:

--- Quote from: Amade on June 26, 2010, 01:27:27 AM ---Don't listen to HellsHero, you're doing it right.

--- End quote ---
Blah, just realized this. Meh, I tried.
Navigation
Message Index

Go to full version