OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Chris1986 on 20 Feb 2010, 10:12:35

Title: Trigger Help
Post by: Chris1986 on 20 Feb 2010, 10:12:35
Ive been trying to create a mission where there is a IED that will go off if " BLUFOR " enter the trigger without carrying a certain item e.g a weapon . Im pretty sure its going to be simple but im not getting anywhere with it so thought id ask.

so far i have .

1x Random Object named obj1
Triggers -

Code: [Select]
[ For the IED ]
Name : IED1
Cond : This
OnAct : ied1 = "R_57mm_HE" createvehicle getpos obj1

[ For The Countermeasure ]

Cond : player hasweapon " WEAPON "
OnAct : IED1 = false

Im pretty sure its going to be easy but im not too good with triggers so i thought id ask. Any help would be great !



I got it working !! Thanks to soccerboy over at BI Forums.

Link : http://forums.bistudio.com/showthread.php?t=95643