OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 15 Apr 2005, 23:40:00

Title: Activade a trigger
Post 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)?
Title: Re:Activade a trigger
Post by: Wadmann on 16 Apr 2005, 01:05:06
Just thinking out loud again, but I think that for #1 you could put in the condition line:

Code: [Select]
(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

Title: Re:Activade a trigger
Post by: Flauta on 16 Apr 2005, 06:13:58
or even you can try naming the Parachute, and in the condition field of the trigger add these line
Code: [Select]
! chute1D == paratrooperor
Code: [Select]
! alive Chute1