Home   Help Search Login Register  

Author Topic: Smoke Generator by Kegety  (Read 882 times)

0 Members and 1 Guest are viewing this topic.

armybikos

  • Guest
Smoke Generator by Kegety
« on: 05 Jun 2003, 21:20:30 »
I would like to get the Lynx smoke generator vehicle to lay down a smoke screen accross the battlefield. I cant figure out the line in the init field to get it to lay a constant smoke trail. I used

lynx fire "kegsmokegenerator"

but it only fires once and wont follow the waypoints
any help or suggestions are appreciated.

Kaliyuga

  • Guest
Re:Smoke Generator by Kegety
« Reply #1 on: 05 Jun 2003, 21:42:42 »
you could always try a simple script  like this:


smokin.sqs  

#loop
lynx fire "kegsmokegenerator"
~.1
goto:loop
end

of course this will make him fire in an endless loop until he's out of ammo...

you could always start with less ammo or remove the rest of the ammo via a trigger when you wanted to stop it

and don't forget to bring a towel
« Last Edit: 05 Jun 2003, 21:43:41 by Kaliyuga »

armybikos

  • Guest
Re:Smoke Generator by Kegety
« Reply #2 on: 05 Jun 2003, 23:39:59 »
thanks for the script idea i tried it but it only will fire once, I tried messing with your original script but I cant seem to make it work. Got any other ideas?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Smoke Generator by Kegety
« Reply #3 on: 06 Jun 2003, 00:01:50 »
yeah u cud fix Kalis script ::)

da code shud b

Code: [Select]
#loop
lynx fire "kegsmokegenerator"
~.1
goto "loop"

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

armybikos

  • Guest
Re:Smoke Generator by Kegety
« Reply #4 on: 06 Jun 2003, 00:05:13 »
Thanks man that worked great

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Smoke Generator by Kegety
« Reply #5 on: 06 Jun 2003, 00:10:45 »
kool

now solve da prob (use da solve bottom ;D)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Babalon

  • Guest
Re:Smoke Generator by Kegety
« Reply #6 on: 06 Jun 2003, 00:24:13 »
Well, it depends how much ammo that machine has to make it work for ever.  If you need it to work until the end of time on that mission, its a simple addition ot that loop the LCD gave you to fix the problem.

And if you dont want the machine ot work forever, then its a small addition to LCD's mini-script he gave you.

IE: Want the sucker to run for 5 minutes.

First, transform 5 minutes into second.   So 300 seconds.  Change the _duration variable from 300 to whatever you want.

Quote
_duration = 300

_loops = 0.1 / _duration

_i = 0

#loop
~0.1
lynx fire "kegsmokegenerator"
_i = _i + 1
?( _i < _loops) : goto "loop"

exit