OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 15 Apr 2005, 23:40:00
-
Two quistions!
1: How does a paratrooper activade a trigge as soon he puts his foot on the ground (Not while he's hanging in the glider)?
2: How can an artilleryshell activade a trigget at impact (Coc Artillery)?
-
Just thinking out loud again, but I think that for #1 you could put in the condition line:
(getpos unitname) select 2 <=1
so when then unit is less than 1 meter high, the trigger will fire.
As for #2, if the artillery (or some object) damage is greater than say .5, then trigger fires.
As I am still at work, all answer need to be tested in game but I hope that this helps.
Wadmann
-
or even you can try naming the Parachute, and in the condition field of the trigger add these line
! chute1D == paratrooperor
! alive Chute1