Variable in Projectile vs Variable in Hitdef

Started by BoyBoyz, March 17, 2014, 01:32:58 PM

Previous topic - Next topic

BoyBoyz

Hi all. The variable in "palfx.time" shown below turns the flame palfx on p2 OFF when another move is active.
Sadly, this only works when placed in a Hitdef. It does not work when placed in a Projectile.

Why is this so, and how to get around it?


palfx.time = ifelse(var(20) != 0, 0, 32)
palfx.add = 224,68,-40
palfx.mul = 256,192,128
palfx.sinadd = -160,-160,-160,14
palfx.color = 0
palfx.invertall = 1

Bastard Mami

the parameters only get evaluated/updated when the triggers are true, so that varibale is only checked when the projectile is created, not when it hits.

BoyBoyz

Hmm... thanks. I'll try to work something based on that