Jump to content
Sign in to follow this  
ArmAriffic

Can I make a guy have 10x health

Recommended Posts

I wan't to try and make a guy (editor) have 10x the normal amount of health and infinite ammo, I have gotten the infinite ammo part but can I do the health part?

Share this post


Link to post
Share on other sites

dude allowdammage false

Should do the trick.

Edit: Read it wrong, thought you wanted him to be Invincible.

Edited by zigzag

Share this post


Link to post
Share on other sites

Create a handler to handle hits.

Each time the person gets hit, just give him _unit setDamage ( getDammage + ( ( 1 / 10 ) * _dmg ) ) and that will extend his life 10x.

Share this post


Link to post
Share on other sites

coulde you tell me exacly what to do?, I tryed to just copy/ paste but didnt work, can you put it exacly how it should be?

_unit setDamage ( getDammage + ( ( 1 / 10 ) * _dmg ) ) and that will extend his life 10x.

Share this post


Link to post
Share on other sites

Yes you could put it in the init of the unit.

But change "Soldier" to "this"

Share this post


Link to post
Share on other sites

HANDLE = Soldier addeventhandler ["HandleDamage",{(_this select 2) / 10;} ];

That one just gives me a unit that cannot die at all..

Share this post


Link to post
Share on other sites

this addEventHandler ["HandleDamage",{if (_this select 1=="") then {damage (_this select 0)+((_this select 2)/10)}}]

More info on HandleDamage in my sig.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×