ActionUseTalentOnObject(talent, object)

From NWN Lexicon

Use tChosenTalent on oTarget.

void ActionUseTalentOnObject(
    talent tChosenTalent,
    object oTarget
);

Contents

[edit] Parameters

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

[edit] Description

Use tChosenTalent on oTarget.

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

[edit] Version

1.61

[edit] 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);
}

[edit] See Also

functions:  ActionUseTalentAtLocation


author: Ryan Hunt, editor: Lilac Soul

Personal tools
Categories