OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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.
-
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... ;)
-
Does "b" stand for something in that command line?
-
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 ;))
-
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
...
-
Yeah, yeah, just beat me. I told ya, I need something to script.
(Use Artaks version, itÂ's much better ;))
-
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 ;)
-
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.
-
Are there any other big explosion exept for HEAT120 cause it doesn't blow up the units next to it.
-
Use "SHELL120" !!
Then all the units will fly sky high!
:o :o :o :o
-
Try a laser guided bomb. Or 50 HEAT shells all at once.
-
How can u do 50 heat shells at once or do an lgb?
-
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