Wo
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteLockView
(Formerly known as SetCharacterView, which is now obsolete)Code: ags 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:Code: ags 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.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.143 seconds with 19 queries.