OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Blacknite on 12 Dec 2008, 05:38:16

Title: Barrels inflame
Post by: Blacknite on 12 Dec 2008, 05:38:16
Hello fellows, I would like to have barrels to be on fire like the fire place.  I would also would like some barrels to explode when hit aswell...  I saw it in a mission but dont remember what it was...  Anybody know the scripting?
Title: Re: Barrels inflame
Post by: Carroll on 12 Dec 2008, 06:37:52
To answer the part about the barrel exploding when hit....

This will be the explosion at the barrels position (barrel named B1)
Code: [Select]
Boom1a =  "M_Sidewinder_AA" createVehicle (getpos B1);This will be the condition
Code: [Select]
getDammage B1 > 0.05
Title: Re: Barrels inflame
Post by: johnnyboy on 12 Dec 2008, 07:17:46
Hi Blacknite.  Your post prompted me to upload a fun barrel explosion script I've had for awhile.  Check it out here:

http://www.ofpec.com/forum/index.php?topic=32647.msg224672#msg224672

It's very easy to use, and the chain reaction effect can be quite amusing.
Title: Re: Barrels inflame
Post by: Blacknite on 14 Dec 2008, 06:36:34
Thanks fellows!