What is that


What is ‘Calculate’ detected NaN value. Returning undefined

3 Likes

Show your script named “explosion of nulls”. Or is it an error?

1 Like


There it is the script. I should probably replace it or remove it, Setting an entity value of health so it will be set 10000 lower, but instead the game thinks it is NaN and it will deal infinite damage.

2 Likes

It is most likely an error. The calcucate detects what number your trying to operate with it.
Basically if you put a NaN value, or a calucate detects that it is a NaN value, it returns with the process of undefined.

2 Likes

It would happen when a unit without health starts touching a projectile (I’m not sure if such a unit exists though). You can see if all units have health as an entity attribute.

Another possibility is mistakenly set entity variable instead of entity attribute.

2 Likes

I didn’t set to entity variable instead of entity attribute, maybe the game code is changed i think

2 Likes