Page MenuHomeFeedback Tracker

AI units get stuck when using playMove to move them with animation
New, WishlistPublic

Description

AI units often get stuck in place when a playMove "MovementAnimHere" is run on them. The animation happens well enough but the units rarely moves consistently and often just "moon walks" on the spot despite having no walls to collide with.

Details

Legacy ID
1825735839
Severity
None
Resolution
Open
Reproducibility
Sometimes
Category
Anims
Steps To Reproduce

in the editor create a player and another AI unit called 'dude' making sure you are not in a group with him.
set a waypoint for 'dude' with a house position so he will go inside.
in Game use the console (pressing esc during gameplay) to enter and execute:

dude playMove "AmovPercMwlkSrasWrflDf";
making the unit move forwards... repeat until the unit has hit a wall.

now back him up with:

dude playMove "AmovPercMwlkSrasWrflDb";

observe how the unit will often be stuck and can no longer move. just animates.
also if you run many playMove anims in a row the unit will turnclockwise when the anims are all complete. the amount appears to be dependant on the number of playMoves done in a row.

Additional Information

As previously detailed this doesn't always happen but it happens enough for it to make the use of playMove to manaully design a movement script pretty much impossible by itself. if there is a work around that will allow AI units to ignore collisions for a sec (disableCollisionsWith doesn't do this job for me) then i'd be happy to hear it.

Event Timeline

zorilya edited Steps To Reproduce. (Show Details)Oct 5 2013, 4:41 PM
zorilya edited Additional Information. (Show Details)
zorilya set Category to Anims.
zorilya set Reproducibility to Sometimes.
zorilya set Severity to None.
zorilya set Resolution to Open.
zorilya set Legacy ID to 1825735839.May 7 2016, 5:03 PM
Bohemia added a subscriber: AD2001.Oct 5 2013, 4:41 PM