Ambient OverrideBehaviour

From Dragon Age Toolset Wiki
Revision as of 22:54, 3 August 2011 by Sunjammer (Talk | contribs) (Added sourcemodule)

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

Overrides a creature's predefined ambient behaviour.

void Ambient_OverrideBehaviour(
object oCreature,
int nAnimPattern,
float fAnimFreq,
int nOverrideCount
);
Parameters:
oCreature
The creature performing the ambient behaviour.
nAnimPattern
The override animation pattern (index into ambient_ai.xls).
fAnimFreq
The override animation frequency.
nOverrideCount
The number of times the override animation pattern is to be played (-1 for infinite).
Returns:

Nothing.

Source:

Core Game Resources.sys_ambient_h

Description

Overrides the ambient behaviour animation pattern and animation frequency defined by the creature template. -1.0 to play all animations in order