Hello all.
I've made an error in this script, somewhere.
Intended behaviour (for debugging):
Unit is normally a custom Emitter.
When hit by a Nullifier, should trace "OOF".
Actual behaviour:
Kaboom, PZ left, :destroyed called, and so on.
So, it seems that I have made an error when setting CONST_DESTROYONDAMAGE. But I can't seem to find it, and the nearby trace statement runs.
(Final script is intended to launch "spores" to reproduce, hence "Shroom" as the name.)
You need to set CONST_NULLIFIERDAMAGEAMT to 1.
Why? Is that not the default?
To be clear: The issue is that the Core is being destroyed when it should not.
So setting the Nullifier damage amount seems futile, given that the core is supposed not to be destroyed on damage.
make sure it's written
<-uid Const_??? value setunitattribute
if you have it this way
<-uid value const_??? setunitattribute
it wipes the unit away. had that problem yesterday.
I've checked that. :)
Time to eat a delicious pile of words...
Setting the Nullifier damage amount worked. This leaves me still asking "Why?"