EnterTargetingMode(object, int, int)

From NWN Lexicon
Revision as of 04:38, 8 August 2020 by Shadguy (talk | contribs) (initial page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Makes oPC enter a targeting mode, letting them select an object as a target.
void EnterTargetingMode(
    object oPC,
    int nValidObjectTypes = OBJECT_TYPE_ALL,
    int nMouseCursorId = MOUSECURSOR_MAGIC
);


Parameters

oPC
The player to enter targeting mode.
nValidObjectTypes
An OBJECT_TYPE_* constant specifying the type of object to target.
nMouseCursorId
The mouse cursor id to use.

Description

Makes oPC enter a targeting mode, letting them select an object as a target If a PC selects a target, it will trigger the module OnPlayerTarget event.


Remarks

Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.

Version

1.74.8193.14

Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

functions: GetTargetingModeSelectedObject() GetTargetingModeSelectedPosition() GetLastPlayerToSelectTarget()



 author: Shadguy