Author Topic: Delay  (Read 376 times)

How would you go about putting a delay in a script?

schedule(TIMEINMILLISECONDS, 0, COMMANDTOBECALLEDAFTERDELAY, OPTIONALVARIABLE, OPTIONALVARIABLE, OPTIONALVARIABLE);

Like this?
Code: [Select]
schedule(3000, 0, %obj.changedatablock(PlayerStandardArmor););

Like this?
Code: [Select]
schedule(3000, 0, %obj.changedatablock(PlayerStandardArmor););

%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 "").

Thank you, it works.
*Topic Locked*