em aye, that's
one way of doing it....
another way would be like this -
create a marker called "target"
set up a variable called
end_explosions and make it false
cut n paste the following:
;random explosions
#again
_x = getmarkerpos "target" select 0
_y = getmarkerpos "target" select 1
_h = random 6
_rad = random 4
_ang = random 360
"shell120" camcreate [_x+(_rad*sin(_ang)),_y+(_rad*cos(_ang)),_safemargin+_h]
_r = random 1
~_r
?not (end_explosions):goto "again"
exit
save and call it "explosions.sqs"
then call the script by using [] exec "explosions.sqs". when you've had enough of the fireworks, set
end_explosions to true.
a little less work, and a little more random.
EDIT - oop, wrong code - making dinner at the same time y'see