The original script for shapeshifting uses:
GetCreatureProperty( ..., PROPERTY_ATTRIBUTE_AP, PROPERTY_VALUE_TOTAL);
but this returns a value which doesn't seem to update when a character removes or switches their weapon, and the reported value is very low... like, 100x less than what's reported in the character's window.
The Toolset also has function:
DmgGetArmorPenetrationRating()
... but this requires to pass weapon as object and i can't figure out how to obtain 'the object which is currently equipped weapon' with the available functions.
Finally there's also
GetWeaponArmorPenetration()
... with associated wrapper, but this in turn requires to pass a target object as well as the attacker. Trying to pass attacker as the target as well returns the value of 0.0 and i'd rather code which doesn't require presence of anything other than the character who actually holds the weapon...
at the moment kind of stumped
Modifié par tmp7704, 29 décembre 2009 - 07:54 .





Retour en haut






