Home   Help Search Login Register  

Author Topic: how to make a unit undestructible?  (Read 947 times)

0 Members and 1 Guest are viewing this topic.

terrazasjs

  • Guest
how to make a unit undestructible?
« on: 03 Jun 2003, 07:50:08 »
i have this plane  that ejects a group from the air ;but i put a flank script that suppost is not going to destroy the plane, but while the plane is moving is getting hit all the time before it reaches the eject waypoint and all my group die.How can i make the plane to resist more hits or to make it invincible? ???

polata

  • Guest
Re:how to make a unit undestructible?
« Reply #1 on: 03 Jun 2003, 08:58:54 »
Go to  Units and groups from snippets section. Then look for snYpirs (How to make tougher units) script

or

Make a trigger,
condition field: not alive plane
on activation field: plane setdammage 0


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:how to make a unit undestructible?
« Reply #2 on: 03 Jun 2003, 10:52:26 »
put in its init da next line

Code: [Select]
this addeventhandler ["hit",{this setdammage 0}];this addeventhandler ["killed",{this setdammage 0}]
shud work ;)

LCD OUT
« Last Edit: 03 Jun 2003, 11:23:22 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:how to make a unit undestructible?
« Reply #3 on: 03 Jun 2003, 11:23:25 »
oops i had eror in da line  gave u ;)

i edited my last post ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:how to make a unit undestructible?
« Reply #4 on: 03 Jun 2003, 11:35:34 »
doesn't work for the player tho... this is because the game detects the death before the script... and will then run the 'death scene' and game over.
Proud Member of the Volunteer Commando Battalion

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:how to make a unit undestructible?
« Reply #5 on: 03 Jun 2003, 16:04:48 »
I think the solution is given here :

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

(check reply #9  ;))
« Last Edit: 03 Jun 2003, 16:06:54 by Igor Drukov »

_Ross_

  • Guest
Re:how to make a unit undestructible?
« Reply #6 on: 04 Jun 2003, 22:23:22 »
DUH
use the command:
'unitname' allowdamage false

Ace

  • Guest
Re:how to make a unit undestructible?
« Reply #7 on: 04 Jun 2003, 23:14:17 »
DUH
That command was disabled in version 1.10

DUH ;D

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:how to make a unit undestructible?
« Reply #8 on: 05 Jun 2003, 00:50:18 »
lol
Proud Member of the Volunteer Commando Battalion

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:how to make a unit undestructible?
« Reply #9 on: 05 Jun 2003, 00:54:44 »
hahaha, alotta d00ds these days seem to be playing OFP_v_1.10  ;D

must be all those east-european 'burners'  :o :-X ;D an' I guess that means that the command works just fine for THOSE guys! :hmm:  ;D


(ps. off course, they COULD be playing an official copy - I hope so, coz burning OFP is BAAAAD) !
a game like that deserves 100% support

Offline Burn

  • Members
  • *
Re:how to make a unit undestructible?
« Reply #10 on: 05 Jun 2003, 00:58:36 »
Quote
a game like that deserves 100% support
 :afro:I totally agree...
« Last Edit: 05 Jun 2003, 01:00:00 by Bizon »