SetMapPinEnabled

From NWN Lexicon



Contents

[edit] SetMapPinEnabled(object, int)

Enable a map pin.

void SetMapPinEnabled(
    object oMapPin,
    int nEnabled
);

[edit] Parameters

oMapPin

Map pin on the displayable map.

nEnabled

TRUE or FALSE.


[edit] Description

Enables or disables a map pin on the displayed map.



[edit] Remarks

A VERY useful function if you want to add some realism to your modules. Personally, I dislike knowing that "oh, so that's where the bad guy is because that's where the map pin is", even if I don't look at the map pin's caption.

Thus, this can for instance be used OnEnter of a trigger to make a PC get the panel button.


[edit] Known Bugs

Not a bug, but it is too bad that there is no "oPC" parameter to only enable the map pin for a single player instead of all players in a multiplayer environment.


[edit] Version

1.61

[edit] See Also



 author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Drake Coker
 

Personal tools
Categories