OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Cougarxr7 on 23 May 2009, 18:56:27
-
Here's what I have. I've tried so many different code combos, nothing worked.
Please help!
#start
; a loop repeating 10 times
for [{_i=0}, {_i<10}, {_i=_i+1}]
goto "LOOP" (to repeat 10 times)
else
goto "end" (after 10 passes it stops)
#loop
"text to run"
goto "start"
#end
hint "GOODBYE, YOU GOT IT TO WORK FINALLY"
exit
It's like the game engine can't count or add, of course thats not true it's me and my inability
to get the code right!
Thanks!
-
player sideChat "go!"
_counter = 5;
#loop
; do stuff here
player sideChat "busy..."
_counter = _counter - 1
? _counter > 0 : goto "loop"
player sideChat "done"
-
That worked very well, Thanks!