Home   Help Search Login Register  

Author Topic: Activade a trigger  (Read 847 times)

0 Members and 1 Guest are viewing this topic.

Robinhansen

  • Guest
Activade a trigger
« 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)?

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:Activade a trigger
« Reply #1 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

Check out my Camouflage Collection! New items added 31 July 2005.

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:Activade a trigger
« Reply #2 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