OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: ICMTRIGGER on 29 Aug 2003, 21:22:52

Title: HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: ICMTRIGGER on 29 Aug 2003, 21:22:52
I MADE A CO OP MAP WHERE THE GAME HAS TO END WHEN/IF THE PILOT GETS SHOW IF SOME ONE COULD HELP ME AND TELL ME HOW I COULD GET THAT DONE I'D APPRECIATE IT.
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: rhysduk on 29 Aug 2003, 21:30:25
Use this in the ON ACTIVATION feild of the triger that ends the game ( an END 1 type trigegr )

? alive pilotname

If it dont work sorry - i cant remember much on the alive adn dead status of units - try with brakets around the ALIVE word  also ...

Rhys
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: B-2-0 on 29 Aug 2003, 22:57:18
Place a trigger, select type 'End1' and in the condition field type....not alive pilotname.......the not alive part might be all one word, i am not sure, so try both ways ;)
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: Terox on 29 Aug 2003, 23:12:56
!alive P1

where P1 is pilot name
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: Stu35 on 30 Aug 2003, 03:11:28
its been said before but i'll say it again -

Code: [Select]
not (alive pilotname)
in the condition field of an END trigger.

and the REAL reason im posting - watch the caps please, using them excessivly pisses everyone off, and often gets you the words setdammage,player and 1, in the answer to your question... if you follow me.
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: Terox on 30 Aug 2003, 16:09:39
! not NUTS :-)
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: revellion on 07 Oct 2003, 12:13:45
If the pilot is in a Chopper or Plane in init then you can use a trigger with:

-------------------------

Type: end1
! alive (driver heli)

-------------------------

dont ask me why BIS made Driver and Pilot the same :)
Title: Re:HOW DO I MAKE THE GAME END WHEN THE PILOT GETS SHOT
Post by: Chris Death on 07 Oct 2003, 16:31:59
hmm - for some reason, i see a question, where sombeody
is asking for ending a mission, when a pilog gets shot

I couldn't really see the question for: when he gets killed -
just shot.

If you really mean only shot, you could try using an
eventHandler "hit", or check his damage.

If you want him to be killed, than do what you already
were told to do here  ;)

~S~ CD