Home   Help Search Login Register  

Author Topic: Invincible Units  (Read 3142 times)

0 Members and 1 Guest are viewing this topic.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Invincible Units
« Reply #15 on: 05 Aug 2004, 20:36:02 »
Quote
There!    A 100% bullet proof soldier, ready to eat shells & rockets of any kind

How about drowning? What if I get hit by an LGB 17 times and fly into the sea. Would my poo bastard drown?
Not all is lost.

Federalist

  • Guest
Re:Invincible Units
« Reply #16 on: 05 Aug 2004, 23:17:27 »
You can fix the onplayerkilled.sqs problem by simply making a custom onplayerkilled.sqs and leaving it blank. That way the little cutscene with the inspiring quotes won't play when you die.

Dubieman

  • Guest
Re:Invincible Units
« Reply #17 on: 05 Aug 2004, 23:24:03 »
Quote
If you want to create a custom version you can - just put a script file of that name in your mission folder.    You are very strongly advised to use the original as a template because there are certain things (like variables being set) that must happen during this script for the game to work correctly.
::)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Invincible Units
« Reply #18 on: 07 Aug 2004, 16:19:41 »
Does this link give you what you want  (See reply #5)?

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=18512

Quote
Putting the following in the Initialisation field of a soldier:

this addEventHandler ["killed",{this setdammage 0}]; this addEventHandler ["Hit",{this setdammage 0}]  

Seems to work.  He even survives a satchel charge exploded under his feet - once he has landed that is!!  It is very strange to watch.

No scripts needed