| Blockland Forums > Modification Help |
| Could i get some help with scripting |
| << < (2/3) > >> |
| Hazmat:
--- Quote from: Iban on February 27, 2011, 08:36:34 AM ---yeppers. --- Code: ---schedule(1000, 0, "echo", "Hello, late world."); --- End code --- --- Code: ---schedule(time ms, 0, "command name", "argument 1", "argument 2"); --- End code --- (I'm not quite sure what the 0 is for. It doesn't appear in official Torque documentation but it is needed in Blockland's version of Torque.) If you're scheduling an object's function, --- Code: ---%obj.schedule(1000, "delete"); --- End code --- --- Code: ---%objectID.schedule(time ms, "command", "argument 1", "argument 2"); --- End code --- --- End quote --- thanks but is that in miliseconds or seconds |
| Iban:
It specifically states "time ms" |
| Hazmat:
sorry i didn't read past the first one. |
| Hazmat:
if someone could give me a list of functions like how to generate a random number or other stuff that would be great. but i guess those aren't functions really, but i don't know what to call them |
| Headcrab Zombie:
Those are functions. As for random numbers, getRandom(min, max) returns a random number between min and max, or getRandom(max) returns a random number between 1 and max. Also, you should check out the stickies in coding help. |
| Navigation |
| Message Index |
| Next page |
| Previous page |