Author Topic: getClassName() problems  (Read 713 times)

I've tried to do a "if %obj.getClassName() not equals "Player"{ blah blah blah}", but nothing happens. "if %obj.getClassName() !=" doesn't seem to do anything, and I'm not sure if there's another place to put the !.

For now, I'm working around it with "if %obj.getClassName() $= "Player"{}else{blahblahblah}".

Use !$= for comparing strings, if(%obj.getClassName() !$= "Player") { }

Ah, never knew you could do that. Thanks a lot!