Scripting issue - Checking invisibility

MIB88

So Old I'm Losing Radiation Signs
Modder
I was trying to fix a potential problem in the MM with invisible critters. While trying to come up with a solution, I realized that the fix could also be used to add a couple of elements to the MM that I've wanted.

So, obviously critters and scenery can be set to be visible or invisible. But, is there a way to check what the current status is in script? The script command listed in the Fallout 2 editor guide makes a reference to a "obj_is_visible_flag", but I can't compile the script using it. I've tried multiple ways of using it. The guide even says that command may not work. So, anybody out there have any ideas for a command which would check visibility status?
 
Code:
#define is_visible(cr)                      has_trait(TRAIT_OBJECT,cr,OBJECT_VISIBILITY)
Works fine.
 
Back
Top