Jump to content
Sign in to follow this  
krycek

Improved armor?

Recommended Posts

Hey guys,could someone tell me if there is a way to increase the armor value of a soldier?Perhaps a script or something that goes in the init?

I want my soldiers to survive a little longer in a tough battle.

Share this post


Link to post
Share on other sites

use eventhandlers. either add

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addEventHandler ["dammaged", {(_this select 0) setdammage (getdammage (_this select 0) - ((_this select 2)*0.95)); hint format ["%1,%2,%3", (_this select 2), (_this select 2)*0.95, getdammage (_this select 0)]}]

in all the units ini lines or you use a trigger which is as larger than the map set to "on east/west present" and "on activation" <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

{_x addEventHandler ["dammaged", {(_this select 0) setdammage (getdammage (_this select 0) - ((_this select 2)*0.95)); hint format ["%1,%2,%3", (_this select 2), (_this select 2)*0.95, getdammage (_this select 0)]}]} foreach thislist

kinda works. it won't if the unit is hit too fast with several rounds.

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  

×