| Blockland Forums > Modification Help |
| Delay |
| (1/1) |
| jes00:
How would you go about putting a delay in a script? |
| MegaScientifical:
schedule(TIMEINMILLISECONDS, 0, COMMANDTOBECALLEDAFTERDELAY, OPTIONALVARIABLE, OPTIONALVARIABLE, OPTIONALVARIABLE); |
| jes00:
Like this? --- Code: ---schedule(3000, 0, %obj.changedatablock(PlayerStandardArmor);); --- End code --- |
| MegaScientifical:
--- Quote from: jes00 on July 07, 2011, 10:35:15 AM ---Like this? --- Code: ---schedule(3000, 0, %obj.changedatablock(PlayerStandardArmor);); --- End code --- --- End quote --- %obj.schedule(3000, changeDatablock, "PlayerStandardArmor"); Never put a ; in the middle of a command, unless as a string. Also, when a schedule is used on an object, you don't need that 0 in there. I never found out what that's used for, but in plain schedules it is needed (or ""). |
| jes00:
Thank you, it works. *Topic Locked* |
| Navigation |
| Message Index |