OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pravit on 25 Mar 2003, 00:46:28

Title: car bomb mission
Post by: Pravit on 25 Mar 2003, 00:46:28
I have a mission where the player is part of a group of soldiers on guard in a town. How do I get the soldiers to be in "Careless" mode without setting a waypoint for them? Anyhow, I have a civilian and a car outside of the town. I made the civilian get in the car, park it in front of the soldiers, and run out. When he gets to a specific point, I used setdammage to destroy the car, but the problem is that there isn't much of an explosion from a civilian car. Is there any command to make huge explosions? Or how would you create a satchel charge and detonate it instantly?
Title: Re:car bomb mission
Post by: Pravit on 25 Mar 2003, 00:50:37
ah, i figured out how to make them careless by typing grp1 = group this; grp1 SetBehaviour "CARELESS" into the leader's init field. Now I just need to figure out how to make a satchel charge appear where the car is and explode instantly.
Title: Re:car bomb mission
Post by: Kaliyuga on 25 Mar 2003, 02:27:20
name your car   c

then put this in a trigger:


b="HEAT120" camcreate getpos c  


as soon as the trigger goes off........  

boom

no more car

you can substitute other shells and ammo for the HEAT120, but IMO the HEAT shells give the best visual effect without toooo much shrapnel.....

you could of course use a LGB for the most destruction  

Grab a copy of the weapons and ammo list for all the proper ammo names... ;)
Title: Re:car bomb mission
Post by: ZeekLTK on 25 Mar 2003, 03:01:09
Does "b" stand for something in that command line?
Title: Re:car bomb mission
Post by: dmakatra on 25 Mar 2003, 07:45:03
DonÂ't worry, m8, IÂ'll make a simple script for ya.

(Big explosions :D)

IÂ'm done. ;D



Download the script and put it in your mission folder(Operation Flashpoint/users/YourUserName/YourMissionName).Put this in a soldiers init field:

[CarName, KeyWord] exec "boom bang and DIE.sqs"

Where CarName is the name of your car and KeyWord is a KeyWord(Those things you type in the cond field, like HateBush=True or DontAttackIraq=false). The explosion will come when you turn that keyword true.

(I really need something to script! Badly! :P ;))
Title: Re:car bomb mission
Post by: Artak on 25 Mar 2003, 07:54:06
b is the name of the camcreated object.

b1 could be the name of the second camcreated object.

but then again it could be h or j or fidzlypop or whatever..

You decide  ;)  It's just like naming units in the editor, but in this case it's a must.

Armstrong, what do you achieve with the keyword in your script?

_car = _this select 0
_keyword = _this select 1

@ _keyword


bomb="shell120" camcreate getpos _car
...
Title: Re:car bomb mission
Post by: dmakatra on 25 Mar 2003, 07:59:22
Yeah, yeah, just beat me. I told ya, I need something to script.

(Use Artaks version, itÂ's much better ;))
Title: Re:car bomb mission
Post by: Artak on 25 Mar 2003, 08:01:26
No no, not much better. I'm just saying that you don't need to have those two lines in there since they do absolutely nothing  :D

Keep up the good work Armsty  ;)
Title: Re:car bomb mission
Post by: macguba on 25 Mar 2003, 10:05:59
Armsty, if you want a scripting job, read this thread.  (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=7651)     Get hold of that old arty script I used and update it.
Title: Re:car bomb mission
Post by: SharkDog on 30 Mar 2003, 13:31:20
Are there any other big explosion exept for HEAT120 cause it doesn't blow up the units next to it.
Title: Re:car bomb mission
Post by: Knut Erik on 30 Mar 2003, 13:54:44
Use "SHELL120" !!
Then all the units will fly sky high!
 :o :o :o :o
Title: Re:car bomb mission
Post by: macguba on 30 Mar 2003, 15:06:37
Try a laser guided bomb.   Or 50 HEAT shells all at once.
Title: Re:car bomb mission
Post by: SharkDog on 30 Mar 2003, 16:45:46
How can u do 50 heat shells at once or do an lgb?
Title: Re:car bomb mission
Post by: macguba on 30 Mar 2003, 18:07:51
bomb1="HEAT120" camcreate getpos c
bomb2="HEAT120" camcreate getpos c
etc

look up LGB in the weapons and ammo list and put it in instead of the heat round