How can I check in the global script if ShowPlayerCharacter is set to false or true in the current room?
thanks
I don't think it is possible to do directly (which is unfortunate).
You may turn off "Enforce object-based scripting" and check "player.on" (should be = 0).
Another option is to make a room's custom property which would duplicate the setting for informational purposes.
I believe ShowPlayerCharacter affects the transparency of the player, thus I believe, by a simple check
if (player.Transparency==100)
{
//player not visible
}
else
{
//player visible
}
Quote from: Dualnames on Sun 29/12/2013 21:05:41
I believe ShowPlayerCharacter affects the transparency of the player
No, it does not; it affects "character.on" variable.
Just checked to be sure, but player.on isn't dependent on old-style scripting. It was never part of the user interface, so STRICT ignores it completely and just lets it through. It's essentially the same as a proper Character.Visible property, except CJ said he had never fully taken the time to ensure that it was safe for the user to rely on it. AFAICT, it's perfectly safe for this type of usage though.
Ok, I'll use player.on then.
thanks