Difference between revisions of "GetTargetingModeSelectedPosition"

From NWN Lexicon
Jump to: navigation, search
m
Line 5: Line 5:
 
</nwscript>
 
</nwscript>
 
===Description===
 
===Description===
Gets the target position in the module [[OnPlayerTarget]] event.
+
Returns a vector position of the targeted object or location.  If the target is in inventory or the player manually exits targeting mode, returns an empty vector (0.0, 0.0, 0.0)
  
 
===Remarks===
 
===Remarks===
 
Obviously this may be invalid if an object was chosen from a players inventory, or other such cases.
 
  
 
See [[OnPlayerTarget]] for further information.
 
See [[OnPlayerTarget]] for further information.

Revision as of 07:16, 11 February 2021

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.
Gets the target position in the module OnPlayerTarget event.
vector GetTargetingModeSelectedPosition(
);

Description

Returns a vector position of the targeted object or location. If the target is in inventory or the player manually exits targeting mode, returns an empty vector (0.0, 0.0, 0.0)

Remarks

See OnPlayerTarget for further information.

Version

This function was added in 1.80.8193.14 of NWN:EE.

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: EnterTargetingMode() GetTargetingModeSelectedObject() GetLastPlayerToSelectTarget()



 author: Shadguy