Forged Alliance Forever Forged Alliance Forever Forums 2018-05-16T17:42:51+02:00 /feed.php?f=53&t=16181 2018-05-16T17:42:51+02:00 2018-05-16T17:42:51+02:00 /viewtopic.php?t=16181&p=163390#p163390 <![CDATA[Re: How to understand this command 'AlterArmor'?]]>
speed2 wrote:
Ghoustaq wrote:
why is this command related with 'damageTypeName' instead of 'armorTypeName' ?

maybe it isnt, this "documentation" is more than poor, it would not be the first thing that would be wrong. Either find some code that uses it or experiment with it to find out what it does. That's the only way.


Yes, I tested it just now. the multiplier does effect the value of damage which a unit suffers from another.it doesn't matter that 'Normal' is the value of 'damageType' or 'armorType' ,'cause they are both normal in most cases.

Statistics: Posted by Ghoustaq — 16 May 2018, 17:42


]]>
2018-05-16T16:50:56+02:00 2018-05-16T16:50:56+02:00 /viewtopic.php?t=16181&p=163379#p163379 <![CDATA[Re: How to understand this command 'AlterArmor'?]]>
Code:
AlterArmor(armorTypeName, multiplier)


But i don't know how it works, its also not present in the original programmcode.
Maybe a deprecated/forgotten command from SupCom vanilla.

Statistics: Posted by Uveso — 16 May 2018, 16:50


]]>
2018-05-15T20:19:29+02:00 2018-05-15T20:19:29+02:00 /viewtopic.php?t=16181&p=163339#p163339 <![CDATA[Re: How to understand this command 'AlterArmor'?]]>
Ghoustaq wrote:
why is this command related with 'damageTypeName' instead of 'armorTypeName' ?

maybe it isnt, this "documentation" is more than poor, it would not be the first thing that would be wrong. Either find some code that uses it or experiment with it to find out what it does. That's the only way.

Statistics: Posted by speed2 — 15 May 2018, 20:19


]]>
2018-05-15T18:31:28+02:00 2018-05-15T18:31:28+02:00 /viewtopic.php?t=16181&p=163336#p163336 <![CDATA[How to understand this command 'AlterArmor'?]]>

AlterArmor
INFO: Unit:AlterArmor(damageTypeName, multiplier)


The code is copied from http://supcom.wikia.com/


such as Unit:AlterArmor('Normal', 0.5) , does it mean the unit will just get half of the damage if the type of the damage is Normal?

why is this command related with 'damageTypeName' instead of 'armorTypeName' ?

Statistics: Posted by Ghoustaq — 15 May 2018, 18:31


]]>