The rules have been updated, read them now: Rules!

max scripting RE2 Remake

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
User avatar
Crazy Potato
Posts: 8
Joined: Mon Mar 26, 2018 4:56 am
Has thanked: 1 time

max scripting RE2 Remake

Post by Crazy Potato » Fri Aug 09, 2019 12:29 am

I'm getting this error after editing a bit to allow more models to be exporting/imported. I'll provide more info if needed, I'd post them now but I don't even know what to post lol
Being new to max scripting can only get you so far before needing help...

User avatar
Posts: 282
Joined: Mon Apr 21, 2014 8:32 pm
Has thanked: 8 times
Been thanked: 229 times

Re: max scripting RE2 Remake

Post by PredatorCZ » Sun Aug 11, 2019 6:02 pm

w1 is not defined, !=0 statement won't protect you from undefined variables (0 != undefined).
You will need to define said variable, or use appropriate expression.

So it should be

Code: Select all

if (w1 != undefined) then maxweight += w1

Post Reply