GetAttackTarget

From Dragon Age Toolset Wiki
Revision as of 19:48, 25 February 2010 by BryanDerksen (Talk | contribs) (looks okay, removing tag)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function gets the combat target of a creature

object GetAttackTarget(
object oCreature
);
Parameters:
oCreature
the creature whose combat target we are querying
Returns:

the id of the creature's target. Will be invalid if the creature has no target.

Source:

script.ldf

Description

This function gets the combat target of a creature. This target is set when using an attack or ability command and is cleared (to target invalid) when combat state is set to false.