OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Ext3rmin4tor on 20 Apr 2011, 18:14:18

Title: [SOLVED] Creating exploding grenades
Post by: Ext3rmin4tor on 20 Apr 2011, 18:14:18
In ArmA 1 I used to spawn ammo classname-based object with grenades ammo classnames to create a minefield, like this

Code: [Select]
"GrenadeHand" createVehicle(getPos _mine)

In this way I could spawn a grenade explosion at the designated location.

The problem with ArmA 2 is that the game engine spawns not an explosion but the model of the handgrenade, in fact I can see a grenade on the ground. Does anybody know how to create a similar effect in ArmA 2? Is there another command to be used?

EDIT:

Solved. It looks like Arma 2, unlike its predecessor ArmA 1, distinguishes between ammo grenades classname and damage grenade classname, so you need to use the classname "Grenade" instead of the ammo classname "GrenadeHand" to make it explode.