GetAttackTarget

From Dragon Age Toolset Wiki
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.