Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
$DamageType::X -> AddDamageType (Solved)
« previous
next »
Print
Pages: [
1
]
Author
Topic: $DamageType::X -> AddDamageType (Solved) (Read 842 times)
Space Guy
February 29, 2008, 12:16:18 PM
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
»
Ad Bot
Advertisement
Ephialtes
February 29, 2008, 02:48:14 PM
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.
Space Guy
February 29, 2008, 03:52:00 PM
Thank you, that works perfectly.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
$DamageType::X -> AddDamageType (Solved)