GetClusterCenter

From Dragon Age Toolset Wiki
Jump to: navigation, search

This function return the center of a cluster of creatures

location GetClusterCenter(
object oCreator,
int nAbilityId,
int nClusterSize,
int nAllyFailChance,
int bReturnFirstMatch
);
Parameters:
oCreator
effect creator
nAbilityId
ability id
nClusterSize
min number of enemies needed
nAllyFailChance
A percentage chance to fail each possible cluster if any ally is inside the cluster. The chance is cumulative per ally
bReturnFirstMatch
[Undocumented]
Returns:

the center of the best cluster of creatures based on input params

Source:

script.ldf

Description

Returns the center of the best cluster of creatures based on input params