I got a inventory item "pwrLevel" that indicates player's "power" - health&damage.
How do I modify projectile's damage on the fly? I dont want to make a long A_JumpIfInventory list, so I want to use zscript to modify the projectile's damage.
When I used this:
Code: Select all
TNT1 A 0
{
if(countinv("pwrlevel") == 1)
{
wrstCannonProjectile.damage = 4;
}
}
"Unable to access 'wrstCannonProjectile.Damage' in a static context"
So, how do I modify the projectile's damage/damagefunction?
edit: Also, I dont want to use powerup, because it modifies damage of all weapons. I need to raise damage of one weapon.