Difference between revisions of "Osiris/API/CharacterSetAnimationOverride"
From Divinity Engine Wiki
(Document SetAnimationOverride) |
m |
||
Line 6: | Line 6: | ||
* An ongoing animation override can be removed by specifying "" as '''_Animation'''. | * An ongoing animation override can be removed by specifying "" as '''_Animation'''. | ||
* Playing a regular animation, e.g. using [[Osiris/API/PlayAnimation|PlayAnimation]], will also remove an animation override. | * Playing a regular animation, e.g. using [[Osiris/API/PlayAnimation|PlayAnimation]], will also remove an animation override. | ||
− | * Making a character do anything via Osiris, such as [[Osiris/API/CharacterLookAt|looking at] someone/something or moving around, will also remove an animation override. Note that unless [[Osiris/Shared/DB_DoNotFace|specified otherwise]], by default a character will look at any person that starts talking to them. | + | * Making a character do anything via Osiris, such as [[Osiris/API/CharacterLookAt|looking at]] someone/something or moving around, will also remove an animation override. Note that unless [[Osiris/Shared/DB_DoNotFace|specified otherwise]], by default a character will look at any person that starts talking to them. |
* In practice, it is very hard to keep an animation override going for characters that are interacted with. If possible, use a status instead, as these will not be removed so easily. | * In practice, it is very hard to keep an animation override going for characters that are interacted with. If possible, use a status instead, as these will not be removed so easily. | ||
===== See Also ===== | ===== See Also ===== |
Revision as of 20:35, 14 October 2017
Full Definition(s)
- call CharacterSetAnimationOverride((CHARACTERGUID)_Character, (STRING)_Animation)
Description
Starts the looping animation simple name _Animation on _CHARACTER.
Notes
- An ongoing animation override can be removed by specifying "" as _Animation.
- Playing a regular animation, e.g. using PlayAnimation, will also remove an animation override.
- Making a character do anything via Osiris, such as looking at someone/something or moving around, will also remove an animation override. Note that unless specified otherwise, by default a character will look at any person that starts talking to them.
- In practice, it is very hard to keep an animation override going for characters that are interacted with. If possible, use a status instead, as these will not be removed so easily.
See Also
- PlayAnimation
- Helper DB_DoNotFace