Home   Help Search Login Register  

Author Topic: prob with flak script!  (Read 544 times)

0 Members and 1 Guest are viewing this topic.

titan

  • Guest
prob with flak script!
« on: 13 Apr 2003, 14:15:00 »
hi, im trying to make a script to represent flak...this is what it looks like

_flak1 = _this select 0

#start

_flak1 = "shell120" camcreate getpos _flak1
_flak1 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]
_flak2 = "shell120" camcreate getpos _flak1
_flak2 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]

~1

_flak3 = "shell120" camcreate getpos _flak1
_flak3 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]
_flak4 = "shell120" camcreate getpos _flak1
_flak4 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 513]

~3

_flak5 = "shell120" camcreate getpos _flak1
_flak5 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]
_flak6 = "shell120" camcreate getpos _flak1
_flak6 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 570]

~2

goto "start"




this shld create an explosion at 3 diff heights within seconds of each other...but it only creates the first explosion then stops!  

Any ideas

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:prob with flak script!
« Reply #1 on: 13 Apr 2003, 14:19:51 »
its becuase they are at different heights

_flak1 = _this select 0

#start

_flak1 = "shell120" camcreate getpos _flak1
_flak1 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]
_flak2 = "shell120" camcreate getpos _flak1
_flak2 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 490]

~1

_flak3 = "shell120" camcreate getpos _flak1
_flak3 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 513]
_flak4 = "shell120" camcreate getpos _flak1
_flak4 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 513]

~3

_flak5 = "shell120" camcreate getpos _flak1
_flak5 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 570]
_flak6 = "shell120" camcreate getpos _flak1
_flak6 setpos [getpos _flak1 select 0, getpos _flak1 select 1, 570]

~2

goto "start"

titan

  • Guest
Re:prob with flak script!
« Reply #2 on: 13 Apr 2003, 17:41:11 »
i noticed that just after i posted!

I went bck and altered them to what they shld be, but same prob...only one explosion then thats it!

titan

  • Guest
Re:prob with flak script!
« Reply #3 on: 13 Apr 2003, 17:47:18 »
ok got it....i just changed the names of flak1, flak2 etc to bang1...

i think it was because it was mixing up with the trigget it was being created at!