Modifying projectile's damage in its states
Posted: Sun Aug 19, 2018 3:19 pm
I have a projectile whose damage I want to increase at certain points during its states (specifically, in its bounce states). I have tried the following in ZScript:
However, doing so gives me the following error:
Is there another way in ZScript for me to modify a projectile's damage on the fly?
Code: Select all
Bounce:
TNT1 A 0
{
damage = 20;
}
Goto Spawn;
Code: Select all
Expression must be a modifiable value