Armored when close scripts

From Spring
Revision as of 14:51, 13 November 2012 by Emmanuel (talk | contribs) (damagemodifier exemple)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

--activation of the UnitDef modifier--

in UnitDef the tag damagemodifier=0.1, mean 1/10 of damage will be deduced of health when activated by the AnimDef switch


  • armor of UnitDef activated when variable set to 1

local doorclosed

if doorcloosed=1

then SetUnitValue (20,1) else

SetUnitValue (20,0)

end