Home   Help Search Login Register  

Author Topic: new scripts  (Read 802 times)

0 Members and 3 Guests are viewing this topic.

CODY2622

  • Guest
new scripts
« on: 05 Oct 2002, 14:55:53 »
Can someone please make a script for a chopper to land and then a civilan jumps in and BOOM! the chopper explodes. Like on APOCALYPSE NOW: REDUX  ;D 8) :)

Kaliyuga

  • Guest
Re:new scripts
« Reply #1 on: 08 Oct 2002, 01:17:29 »
 Make a trigger like this one

Condition:playername in choppername

On Activation: b1="AT4" camcreate getpos choppername


There's your "script"


Offline XCess

  • Former Staff
  • ****
Re:new scripts
« Reply #2 on: 10 Nov 2002, 21:59:08 »
u don't need to give the AT4 a name since it will be destryed as soon as it hits the helo.

the condition should be '!(unitname in heloname)'

CODY2622

  • Guest
Re:new scripts
« Reply #3 on: 06 Jan 2003, 02:43:56 »
Well if you people know so much about this then could please make me a script. I need it very bad.

Pandoz

  • Guest
Re:new scripts
« Reply #4 on: 08 Jan 2003, 07:26:03 »
ok im just gunna type this real quick so follow along:)...i didnt check this for errors but the only thing u should need to change is the ~2 if u want a longer or shorter delay. if u want an explosion...before the setdammage1 thing put this line.... bomb="heat125" camcreate getpos _chopper


if u have questions feel free to ask...have fun

o ya sorry i forgot one thing to explain in case u dont quite understand everything... in order to activate this put [units name here, helis name here] exec "heli.sqs" ok so an example of this is if mans name=pandoz and heli name is NAA then it would be [Pandoz,NAA] exec "heli.sqs" ??? u get that if not ask:) lata

Pandoz
« Last Edit: 08 Jan 2003, 07:27:52 by Pandoz »

Offline KTottE

  • Former Staff
  • ****
Re:new scripts
« Reply #5 on: 10 Jan 2003, 11:55:56 »
First off, Kaliyuga is right, you need to name the AT4, because the naming part is necessary for the camCreate syntax.

Secondly, just from a brief glance on your script Pandoz, I'd say that there are some typos to fix ;D

Save this as explodeHelo.sqs

Code: [Select]
_man= _this select 0
_chopper = _this select 1

#checkLoop

? (_man in _chopper) : goto "boom"
~2
goto "checkLoop"

#boom
_chopper setdammage 4
exit

In the mission, put this in a trigger's condition field:

[unitName, heloName] exec {explodeHelo.sqs}

That's the ugly way of doing it, in my opinion. Now it will blow up (setDammage 4 will create an explosion, provided you have fuel and ammo in the chopper) whenever the unit specified enters the chopper. But that doesn't lend you much control, as the units are likely to enter the vehicle in random places. So if unitName enters first the first time you run the mission, it could enter last the second time you run it.

So I'm gonna work some on a script (don't have the time now) which is more dynamic.

Toodle-pip.

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:new scripts
« Reply #6 on: 10 Jan 2003, 18:37:44 »
ummm, kotty, shouldnt it be:

[unitname, choppername] exec "explodeHelo.sqs"

?
Proud Member of the Volunteer Commando Battalion

Pandoz

  • Guest
Re:new scripts
« Reply #7 on: 11 Jan 2003, 03:10:55 »
alright i know there are errors i just based it off of a carbomb script i have but redid it some...i really wasnt going for quality...just practicality...but i think i failed that too...o well...if i wasnt/am not busy i will make a real script for u

Josef

  • Guest
Re:new scripts
« Reply #8 on: 14 Jan 2003, 19:14:52 »
Thats a ruddy small explosion U get from setdammage 4, cancreating 10 AT4 missiles does the trick ;)

And BTW, including a fire in the script would be cool as helos are loaded with fuel ;D

cpt.Hawkeyez

  • Guest
Re:new scripts
« Reply #9 on: 24 Jan 2003, 00:40:10 »
What fire do you use because it looks real if you create some campfires underneath the exploded chopper and then use CAT_fire or whatever its called to make the fire? No?

CODY2622

  • Guest
Re:new scripts
« Reply #10 on: 07 Mar 2003, 22:40:43 »
can someone just make an example mission for me. I really CAN"T script. By the way. Check out my new script over at the editors depot. It is the a.i. heli's land on ships. You need the Tales of war LSD ship for it to work and resistnce.