Page 1 of 1

Querying instance state...

Posted: Sun Nov 11, 2007 6:32 pm
by Joramun
While making a magic map, I realised I had no idea of how to check the state of a particular instance.
For example, how can I get the state (open/closed) of a door ?

I don't suggest to open the instance flags to direct editing
(since there are already a couple of functions like dsb_toggle(id) to do that)
But being able to know the state of the flags would be nice...

Posted: Sun Nov 11, 2007 7:19 pm
by Remy
It's already open for direct editting. To get (or set) the state, you use the 'flag' functions.
dsb_get_gfxflag(id, GF_INACTIVE)
Will return true if the 'id' is inactive.

Posted: Sun Nov 11, 2007 10:54 pm
by Joramun
Thanks, the "gfx" mislead me...