Is-ship-visible

From FreeSpace Wiki
Revision as of 13:52, 19 February 2011 by Shade (talk | contribs) (New page. Can't believe this was missing from the wiki despite being a retail operator)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
is-ship-visible
    is-ship-visible
    Check whether ship is visible on Player's radar
    Single Player Only! Returns 0 - not visible, 1 - partially visible, 2 - fully visible.
    1: Name of ship to check

Comments

Note that despite the name, this SEXP is numerical, not boolean. As such you need to use numerical comparison to check the result.