OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Coyote on 04 Nov 2010, 23:57:05

Title: another quick and easy (camcreates)
Post by: Coyote on 04 Nov 2010, 23:57:05
Looking to do an enhanced explosion / car bomb. What's Arma's bomb= "powerfulbomb" camcreate (getpos unit)?
Title: Re: another quick and easy (camcreates)
Post by: Worldeater on 05 Nov 2010, 01:59:24
If you're out for the most powerful one try this:
Code: [Select]
"Bo_FAB_250" createVehicle getPos unit;
Title: Re: another quick and easy (camcreates)
Post by: Coyote on 05 Nov 2010, 10:37:13
I'm getting "Type Object, expected nothing".
Title: Re: another quick and easy (camcreates)
Post by: Worldeater on 05 Nov 2010, 10:53:48
You put it in some "Initialization:" field, right? Try this:
Code: [Select]
0 = "Bo_FAB_250" createVehicle getPos unit;
Or - if you're a mathematician and refuse to assign just anything to a number - this:
Code: [Select]
private "_bomb"; _bomb = "Bo_FAB_250" createVehicle getPos unit;
Title: Re: another quick and easy (camcreates)
Post by: Coyote on 05 Nov 2010, 12:01:55
Ok. Got that working. Are there some more bomb names? That one is a lot of fun. but I think it flug me to the other side of the map. Hahaha.
Title: Re: another quick and easy (camcreates)
Post by: Worldeater on 05 Nov 2010, 13:25:01
Heh, don't say I didn't warn you! :D

Take a look at the third column in this list (http://community.bistudio.com/wiki/ArmA_2:_Weapons#Vehicle_.26_Static_Weapons). I assume you're "gun nut" enough to have an rough idea of the damage the ammo causes. In case you want numeric values (like  hit, indirectHit, indirectHitRange, etc.) I'd suggest you create a dump of your A2 config (http://www.ofpec.com/forum/index.php?topic=35236.0) and look them up.