SetSpellTargetingData(object, int, int, float, float, int)
From NWN Lexicon
Jump to navigationJump to searchSets the spell targeting data manually for the player. This data is usually specified in spells.2da.
Parameters
- oPlayer
- The player to whom spell targeting data is applied.
- nSpell
- The spell id for which targeting data is specified, typically a SPELL_* constant.
- 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.
Description
Sets the spell targeting data manually for the player. This data is usually specified in spells.2da. This data persists through spell casts; you're overwriting the entry in spells.2da for this session. In multiplayer, these need to be reapplied when a player rejoins.
Remarks
Version
This function was added in 1.86.8193.35 of NWN:EE.
Example
See Also
constants: | SPELL_* Constants SPELL_TARGETING_SHAPE_* Constants SPELL_TARGETING_FLAGS_* Constants |
functions: |
author: Shadguy