ActionUseTalentOnObject(talent, object)
Use tChosenTalent on oTarget.
void ActionUseTalentOnObject( talent tChosenTalent, object oTarget );
Parameters
tChosenTalent
oTarget
Description
Use tChosenTalent on oTarget.
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: | ActionUseFeat | ActionUseTalentAtLocation |
| categories: | Action on Object Functions | Talents/Skills/Feats Functions |
author: Ryan Hunt, editor: Lilac Soul