Difference between revisions of "GetClusterCenter"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
BryanDerksen (Talk | contribs) m (fix omitted return desc) |
||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=GetClusterCenter | |name=GetClusterCenter | ||
Line 14: | Line 13: | ||
|param4type=int | |param4type=int | ||
|param4name=nAllyFailChance | |param4name=nAllyFailChance | ||
− | |param4desc=A percentage chance to fail each possible cluster if any ally is inside the cluster. The chance is | + | |param4desc=A percentage chance to fail each possible cluster if any ally is inside the cluster. The chance is cumulative per ally |
|param5type=int | |param5type=int | ||
|param5name=bReturnFirstMatch | |param5name=bReturnFirstMatch | ||
|param5desc= | |param5desc= | ||
|returntype=location | |returntype=location | ||
− | |returndesc= | + | |returndesc=the center of the best cluster of creatures based on input params |
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
|sourcemodule= | |sourcemodule= |
Revision as of 23:54, 15 January 2010
This function return the center of a cluster of creatures
location GetClusterCenter(
object oCreator,
int nAbilityId,
int nClusterSize,
int nAllyFailChance,
int bReturnFirstMatch
);
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