OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nmanjar on 20 Dec 2004, 14:00:39

Title: car bombs
Post by: nmanjar on 20 Dec 2004, 14:00:39
I like all the car bomb scripts out there and I have my favorites. One commonality though is that they all usually flip the object up in the air and throw it about 20-30 ft. Is there any way to prevent the car from being tossed up in the air like that.

Sure itd move [sometimes] if it was a car bomb, but not quite that dramatic most of time.

Title: Re:car bombs
Post by: Sophion on 20 Dec 2004, 14:51:34
there is no explosion but... you can have a tigger:

Condition: Player In Vehicle
Activation: Vehicle setdammage 1

i've seen somewere that you can put an explosion on a certain point (I recomend a HEAT round). But i'm not sure how you do it.
Title: Re:car bombs
Post by: nmanjar on 20 Dec 2004, 14:55:08
i was thinking, just raise the explosion nearer the top of object.
Title: Re:car bombs
Post by: Sophion on 20 Dec 2004, 15:11:11
true... then it will make it go down, but it would have nowere to go so it would just stay there.

you can also do what i told you and make a sound come from the vehicle.
Title: Re:car bombs
Post by: Pilot on 20 Dec 2004, 15:48:11
You could try Shell73 or Heat73, they are not as powerful as the other shells:

Code: [Select]
_bomb = "Shell73" camcreate getpos car
or you could try placing several grenades under the car:

Code: [Select]
_bomb1 = "grenade" camcreate getpos car
_bomb2 = "grenade" camcreate getpos car
_bomb3 = "grenade" camcreate getpos car
Title: Re:car bombs
Post by: nmanjar on 20 Dec 2004, 15:50:58
I've never like using the grenades for stuff like this, but thanks for the other part.

cheers
Title: Re:car bombs
Post by: Triggerhappy on 20 Dec 2004, 21:58:49
how about something like:
Code: [Select]
_car = _this select 0
_vel = velocity _car
"shell120" camcreate getpos _car
~.5
_car setvelocity [0,0,0]
_car setvelocity _vel
exit

so it won't fly away and then it will continue moving forward for a little(as long as it takes for it to slow down normally)
Title: Re:car bombs
Post by: RedHouse on 21 Dec 2004, 06:38:03
well if you tried useing a grenade you'd find out it doesnt destroy the car it only stops the car working, i writ a script for this-

http://www.ofpec.com/editors/resource_view.php?id=735