The repeat command repeats the next function in the script. Combining functions in a { } block will cause all functions in the block to be repeated as well.
"then(repeat, count)"
Argument |
Function |
count |
The number of times to repeat the next function. |
And example of the repeat command used in a script is as follows...
The following script creates a random amount of health and ammo kits.
if(interact)
{
then(repeat,rand(1,3))
{
then(createloot,16,16,smallhealthkit)
then(createloot,16,16,smallammokit)
}
then(destroy)
}
|
|