Hoffentlich kann mir hier jemand helfen?
mfg steffen

SetCharacterViewEx
SetCharacterViewEx (CHARID, int view, int loop, align)
Sets character CHARID's view to VIEW, and sets the character's current frame to the first frame in LOOP of VIEW.
The main purpose of this command is that it can align the new frame to the previous one. This is particularly useful if you want to go from the character's normal walking view to a specific animation - since the characters have the central point as their 'axis', if you have a wider animation then it can be difficult to stop yourself getting a jumping effect when the animation starts.
ALIGN can have one of the following values:
align Description
ALIGN_LEFT Moves the new frame so that the left hand side is at exactly the same X co-ordinate as the old one was.
ALIGN_CENTRE Leaves the frames centred in the middle. This is the default and using this is equivalent to just calling SetCharacterView.
ALIGN_RIGHT Moves the new frame so that the right hand side is at exactly the same X co-ordinate as the old one was.
Note that this only aligns the first frame of the animation, so to get the full benefit all your frames in the animation loop should be the same width. All following frames will be shifted by the same amount, until ReleaseCharacterView is called.
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 the program on shadow areas, screen changes, etc). When you are done with the animation, call ReleaseCharacterView to allow the program to take control back.
Example:
SetCharacterViewEx(EGO, 12, 1, ALIGN_LEFT);
AnimateCharacter(EGO, 1, 5, 0);
while(character[EGO].animating) Wait(1);
ReleaseCharacterView(EGO);
will change the character’s EGO view to view 12, perform an animation using loop 1, wait until the animation finishes and then return the character to his normal view.
See Also: ReleaseCharacterView, SetCharacterView, SetCharacterViewOffset