Author Topic: $DamageType::X -> AddDamageType (Solved)  (Read 840 times)

From the damage type variable(s) of a projectile, is there any way I can turn it "back" into its arguments for AddDamageType();, specifically getting the "%2 <bitmap:Add-Ons/CI/Gun> %1" part from something like $DamageType::Gun?
« Last Edit: February 29, 2008, 03:53:28 PM by Space Guy »

They're stored as tagged strings in a $DeathMessage variable like so:

First you get the ID of the damage type by doing $DamageType::[DamageName] (for example $DamageType::HammerDirect which is 8)

Then you do either:
getTaggedString($DeathMessage_Murder[DamageTypeID]); for a murder message

or
getTaggedString($DeathMessage_Self Delete[DamageTypeID]); for a message when you kill yourself with that weapon.

Thank you, that works perfectly.