(Formerly known as SetCharacterView, which is now obsolete)
Character.LockView(int view)
Sets the character's view to VIEW. This can be used to perform animations
with characters, for example bending down to pick something up, which don't
use the default view.
NOTE: This function locks the character's view to the specified view, so
that it can only be changed by other script commands (ie. it won't
automatically be changed by AGS on walkable areas, screen changes,
etc). When you are done with the animation, call UnlockView to allow AGS to
take control back.
Example:
cEgo.LockView(12);
cEgo.Animate(0, 0, eOnce, eBlock, eForwards);
cEgo.UnlockView();
will change the character's EGO view to view 12, perform an animation using loop 0,
wait until the animation finishes and then return the character to his normal view.
See Also: Character.Animate,
Character.ChangeView,
Character.SpeechView,
Character.LockViewAligned,
Character.LockViewOffset
Character.UnlockView,
|