Not quite sure what's happening here - but very strange behaviour. AI pull pistol after playing the raise rifle animation. Weird.
- Legacy ID
Also, the ambientAnimCombat function can cause some odd death effects. If a unit is prone, sometimes they will instantly switch to standing when they're killed. Not consistent - it happens sporadically. Hard to reproduce.
Function BIS_fnc_ambientAnimCombat requires the unit to have a rifle weapon equipped and selected to work properly. When unit gets into combat state, actually acquires an enemy target within 300m or its release condition evaluates to true, the unit will try to interpolate to standing animation with rifle raised ("AmovPercMstpSrasWrflDnon").
If you have the units with rifle weapons and they are switching to handguns after interpolating to "AmovPercMstpSrasWrflDnon", try to remove handguns. Might be caused by unit Ai preferring handgun over rifle.
Hello Jiri - here's what appears to be happening. The rifle (on the back of the unit in the Guard animation) disappears. I've made sure the unit is "FULL" or "ASIS". The unit was a rifleman. The rifle, however, is absent. Then, when the unit is aware of the player, they go to draw their rifle, but the rifle is invisible. Then, they draw their pistol.
Hi Scott. I see, the "GUARD" is set to remove the weapon. It was originally meant to support the weapon and therefore it was allowed to be used in BIS_fnc_ambientAnimCombat.
But later I noticed that there is some serious clipping between the arms and the weapon. So I was forced to set it to remove the weapon and I forgot to disable it for the BIS_fnc_ambientAnimCombat.
I cannot allow the weapon for "GUARD" as it is used in campaign - it would cause clipping there.
Please use different animation set. Mose safe is "STAND". You can also try "WATCH" (="WATCH1") or "WATCH2", if you need more variations.
Thanks for the response - it all makes sense now! I noticed some time ago that the Watch1 and Watch2 were removed from the BIS_fnc_AmbientAnimComabt - have they been added back in now? At the moment, the only standing animations that appear to be available are "STAND" and "LEAN". I'll check tomorrow when I have a chance. Again, thanks for the response. Much appreciated!