InteractWithObject
This page was generated by Sunjammer's Dragon Age Script Parser.
The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.
This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.
Please remove the {{Generated with errors}} tag once the page has been corrected.
Creates and applies a command to play an animation to interact with an object.
object oCreature,
object oTarget,
int nInteractionId,
int nPose = 1,
int nLoops = 0,
int bPlayExit = 1,
int bSkipReposition = 0
);
- Parameters:
- oCreature
- The creature that will interact
- oTarget
- the placeable or creature to interact with
- nInteractionId
- The type of interaction (see SyncPlaceableAnims and SyncCreatureAnims)
- nPose
- The pose loop animation to use
- nLoops
- The number of times to play a pose loop (-1 will loop infinitely)
- bPlayExit
- [Undocumented]
- bSkipReposition
- [Undocumented]
- Returns:
- Nothing.
- Source:
- script.ldf
Description
This function is for playing ambient animations. It should not be used for player or combat interactions. This will create a command to use an object. Sub commands include: (1) move to use point (2) face object (3) interact with object If the target object is a creature, this command will clear all commands on the creature and apply an interaction command on it aswell so they bothe play the sync animations properly. Once a creature has an interaction command on it, additional calls to this function will switch the animation being played immediately, without creating another command.