Cernu 87 Posted November 8, 2020 when two values cannot be compared, but are compared anyways (I have aLOT of problems with game objects, entities, templates, types, and individual objects), the script stops working. Do you know a coder way to bypass the error please ? 1 Share this post Link to post Share on other sites
ocnoglittle 760 Posted November 8, 2020 Usually I will try to use an "If" first to make sure the variable is the right class/type, then compare/add/do something with it. 1 1 Share this post Link to post Share on other sites
Cernu 87 Posted November 8, 2020 (edited) thanks, but I have issues if "example" is a game object, or doesn't even exist. You know, like using NONE, Unknown, null and stuff... Edited November 8, 2020 by Cernu 1 Share this post Link to post Share on other sites
ocnoglittle 760 Posted November 8, 2020 I thought "Is Entity" (one of the options I have in the picture in the last post and something you and Azaren have talked about previously) would just give "FALSE" and then the IF wouldn't continue ? Something like this IF chain, but with whatever instructions you need instead of the "write to console." You can also get rid of the "Else" to have it do nothing if false: I do wish there was an option to see what type of game logic it is. ? Although, you can always use game logic labels and use an IF to see if it has that label. But that might be a lot of work to Ctrl Double click to get the trigger zones for example, then attach the game logic label, because you would have to do that for all types of game logic you have. Share this post Link to post Share on other sites