Home   Help Search Login Register  

Author Topic: Explosive barrel?  (Read 1872 times)

0 Members and 1 Guest are viewing this topic.

Offline punisher

  • Members
  • *
Explosive barrel?
« on: 08 Jul 2011, 21:54:13 »
Is an explosive barrel script possible? Like when it gets shot theres an explosion
I know it was for ofp and possibly arma1 but for arma2?
Thanks
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat

Offline Zipper5

  • BIS Team
  • ****
Re: Explosive barrel?
« Reply #1 on: 08 Jul 2011, 22:18:54 »
It's pretty simple to make, you could use something like this:
Code: [Select]
_barrel = _this select 0;
_explosion = "Sh_125_HE";

waitUntil {damage _barrel > 0};

_barrel setDamage 1;
_explosion createVehicle [(getPos _barrel select 0),(getPos _barrel select 2),(getPos _barrel select 3)];
Save that as a SQF script and execute it in the init lines of the barrels.

Offline F2kSel

  • Members
  • *
Re: Explosive barrel?
« Reply #2 on: 08 Jul 2011, 23:55:41 »
I made a little one that adds a bit of velocity and sound.

Just shoot one of the barrels.

Demo
http://www.sendspace.com/file/vhoovg

Offline punisher

  • Members
  • *
Re: Explosive barrel?
« Reply #3 on: 11 Jul 2011, 17:07:16 »
Thanks thats great!
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat