SetEnterTargetingModeData(object, int, float, float, int, float, int, int)

From NWN Lexicon
Jump to navigationJump to 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.

Sets the spell targeting data which is used for the next call to EnterTargetingMode() for this player.

void SetEnterTargetingModeData(
    object oPlayer,
    int nShape,
    float fSizeX,
    float fSizeY,
    int nFlags,
    float fRange = 0.0f,
    int nSpell = -1,
    int nFeat = -1
);


Parameters

oPlayer
The player to whom targeting mode data is applied.
nShape
A SPELL_TARGETING_SHAPE_* constant.
fSizeX
A dimension related to the specified SPELL_TARGETING_SHAPE_* constant, as follows:
   * Cone - length
   * hsphere - hollowed radius
   * rectangle - length
   * sphere - radius
fSizeY
A dimension related to the specified SPELL_TARGETING_SHAPE_* constant, as follows:
   * Cone - unused
   * hsphere - end radius
   * rectangle - width
   * sphere - unused
nFlags
A SPELL_TARGETING_FLAGS_* constant.
fRange = 0.0f
The range to use for targeting
nSpell = -1
A SPELL_* constant optional, passed to the shader but does nothing by default, you need to edit the shader to use it)
nFeat = -1
A FEAT_* constant optional, passed to the shader but does nothing by default, you need to edit the shader to use it)


Description

Sets the spell targeting data which is used for the next call to EnterTargetingMode() for this player. If the shape is set to SPELL_TARGETING_SHAPE_NONE and the range is provided, the dotted line range indicator will still appear.


Remarks

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


Version

This function was added in 1.86.8193.35 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

constants:  SPELL_* Constants SPELL_TARGETING_SHAPE_* Constants SPELL_TARGETING_FLAGS_* Constants
functions:

SetSpellTargetingData()


 author: Shadguy