Home   Help Search Login Register  

Author Topic: Flares and Parachutes  (Read 1262 times)

0 Members and 1 Guest are viewing this topic.

lilmat

  • Guest
Flares and Parachutes
« on: 22 Sep 2002, 08:12:27 »
Hello All 8)
Just wondering the best way of attaching a flare/smokeshell
to an empty parachute. I'm still a bit behind in this type
of scripting. I know you need to create a loop. But I have
had no luck! ??? The flare drops to earth on it's own!
thanks in advance 8)

Rodd

  • Guest
Re:Flares and Parachutes
« Reply #1 on: 22 Sep 2002, 19:14:51 »
LCD has created a simple parachute script:
lcdpara.sqs-
Code: [Select]
; Parachute script by LCD

_para = _this select 0
_veh = _this select 1

#loop
_parapos= getpos _para;
_parapos= [_parapos select 0, _parapos select 1, (_parapos select 2) - 2.00]
_veh setpos _parapos
? getdammage _para > 0 : _para setdammage 0
? getpos _para select 2 < 2.70 : exit
~0.001
goto "loop"

 I don't know how to get it to work with a flare (it just won't show up) but I can get it to work with a smokeshell, so maybe you can figure out the rest and tell me  ;).
 I add an empty parachute called mypara and do this
Code: [Select]
myflare = "SmokeShellRed" camCreate getpos mypara
[mypara, myflare] exec "lcdpara.sqs"


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Flares and Parachutes
« Reply #2 on: 22 Sep 2002, 19:36:36 »
 ::) didnt know i caled it LCDpara  ::)

nd not dat i had da
Code: [Select]
; Parachute script by LCD
in da start of it  ::)

but if u have 2 use my name do it in caps  ;D

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

Rodd

  • Guest
Re:Flares and Parachutes
« Reply #3 on: 22 Sep 2002, 21:28:37 »
ups, sorry. I mean LCD wrote a script that can be used.

The ; Parachute script by LCD is probably just the result of some corruption during transmission, don't pay attention to that.  ;D

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Flares and Parachutes
« Reply #4 on: 22 Sep 2002, 21:59:25 »
dis damned transmision erors  ::)

should report em 2 a mod  ;D

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

lilmat

  • Guest
Re:Flares and Parachutes
« Reply #5 on: 23 Sep 2002, 17:41:44 »
Hey! guys thanks for that ;) 8)
I used a similar script for the flare, but it just fell to earth
by itself??WHen trying to attach the flare, I did notice something strange, at nite the flare looked like a bad 2dimentional image with a blue circle around it. And in the day I was able to see a line being created from the para position to where the flare was falling!!  Weird!!! :)
Anyway I will give this a go and then I can add the smiley
face to the post.
Cheers!! 8)