ActionUseTalentOnObject(talent, object)

From NWN Lexicon
Jump to: navigation, search

Use tChosenTalent on oTarget.

void ActionUseTalentOnObject(
    talent tChosenTalent,
    object oTarget
);

Parameters

tChosenTalent
Talent to use.
oTarget
The object one which to use the talent

Description

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

Use tChosenTalent on oTarget.

Known Bugs

This function doesn't work on placeables.

Also this function doesn't work reliably with talents created directly using TalentSpell function, for more info about it read [TalentSpell].

Version

1.61

Example

// Have the caller taunt the nearest non-PC
void main()
{
    // Determine skill to use
    talent tTaunt = TalentSkill(SKILL_TAUNT);
    object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_NOT_PC);
    ActionUseTalentOnObject(tTaunt, oCreature);
}

See Also

functions:  ActionUseTalentAtLocation


author: Ryan Hunt, editor: Lilac Soul