Gaming
 

ActionUseSkill

From NWN2Wiki

// Runs the action "UseSkill" on the current creature
// Use nSkill on oTarget.
// - nSkill: SKILL_*
// - oTarget
// - nSubSkill: SUBSKILL_*
// - oItemUsed: Item to use in conjunction with the skill
// Brock H. - OEI 07/10/06 - Added return value, to indicate whether or not the 
// action was successfully queued. Note that the action may still fail during execution. 
int ActionUseSkill(int nSkill, object oTarget, int nSubSkill=0, object oItemUsed=OBJECT_INVALID );