Blockland Forums > Modification Help

[Solved]Delaying Message Sent[Solved]

Pages: (1/1)

jes00:

How would I go about delaying a message sent? I tried the following and it did not work.

--- Code: ---schedule(3000, commandToServer('messageSent',"Test: Success!");
--- End code ---


Placid:

when scheduling things you don't use the actual commandtoserver function's parenthesis.


--- Code: ---schedule(3000,0,commandtoserver,'messageSent',"Test: Success!");
--- End code ---

and just for future reference

--- Code: ---schedule(time,0,command,arg1,arg2,etc);
--- End code ---


Nexus:

I often just do

--- Code: ---schedule(time,0,eval,"code goes here();");
--- End code ---

Because I like that and it was how I learned to use schedules.

MegaScientifical:

This depends: Do you want this serverside or clientside? I have solutions for both, I believe.

jes00:

Client side, and Placid solved it.
*Topic Locked*

Pages: (1/1)

Go to full version