OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Taggart on 03 Apr 2005, 14:21:10

Title: Smoke Grenade as Marker
Post by: Taggart on 03 Apr 2005, 14:21:10
I have a crate "crate1" landing by parachute near a marker called "crate". I have set a trigger with the condition "crate1 distance "crate" < 5" but how can I create a green smoke grenade going off at marker "crate" under this condition  ??? Thanks in advance  :)
Title: Re:Smoke Grenade as Marker
Post by: macguba on 03 Apr 2005, 14:44:42
In principle, just camCreate a smokeshell at the spot.     However, I can't remember where markers are, they may be at sea level in which case make sure you create it at ground level.      Example in the online comref, get the correct name from the weapons and ammo listing.
Title: Re:Smoke Grenade as Marker
Post by: Taggart on 03 Apr 2005, 14:55:23
Thanks finally used invisible h called marker1 and trigger with condition:
crate1 distance marker1 < 20
flare1 = "smokeshellgreen" camCreate getPos marker1
Which works just great, thanks for help.  ;D