OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: holy_bia on 23 May 2003, 14:59:20

Title: How to make a handgrenade fall from a chopper?
Post by: holy_bia on 23 May 2003, 14:59:20
I have a question: How do you make a handgrenade  (or a smokeshell)fall from a chopper? ???
Title: Re:How to make a handgrenade fall from a chopper?
Post by: Komuna on 23 May 2003, 15:29:55
Simple: 'Camcreate' a grenade/smokeshell near that chopper.

_Yourbomb = "grenade" CamCreate [GetPos _MyChopper select 0, GetPos _MyChopper select 1,-1]

I use '[GetPos _MyChopper select 0, GetPos _MyChopper select 1,-1]' instead of just 'GetPos' chopper to avoid the grenade of exploding in the air an damage your heli.