OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terrazasjs on 03 Jun 2003, 07:50:08

Title: how to make a unit undestructible?
Post by: terrazasjs 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? ???
Title: Re:how to make a unit undestructible?
Post by: polata 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

Title: Re:how to make a unit undestructible?
Post by: LCD 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
Title: Re:how to make a unit undestructible?
Post by: LCD on 03 Jun 2003, 11:23:25
oops i had eror in da line  gave u ;)

i edited my last post ;D

LCD OUT
Title: Re:how to make a unit undestructible?
Post by: Messiah 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.
Title: Re:how to make a unit undestructible?
Post by: Igor Drukov 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  ;))
Title: Re:how to make a unit undestructible?
Post by: _Ross_ on 04 Jun 2003, 22:23:22
DUH
use the command:
'unitname' allowdamage false
Title: Re:how to make a unit undestructible?
Post by: Ace on 04 Jun 2003, 23:14:17
DUH
That command was disabled in version 1.10

DUH ;D
Title: Re:how to make a unit undestructible?
Post by: Messiah on 05 Jun 2003, 00:50:18
lol
Title: Re:how to make a unit undestructible?
Post by: Tomb 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
Title: Re:how to make a unit undestructible?
Post by: Burn on 05 Jun 2003, 00:58:36
Quote
a game like that deserves 100% support
 :afro:I totally agree...