Page MenuHomeFeedback Tracker

BIS_fnc_ambientAnimCombat not working on units > 0 elevation.
Closed, ResolvedPublic

Description

This has changed in the most recent Dev Branch update. When calling BIS_fnc_ambientAnimCombat on any infantry unit that is spawned above 0 elevation; the function does not work and the AI revert to their default state.

e.g. Previously I was able to post sentries on a roof using the "WATCH" animation - now they just stand their in an idle, aware state.

This is only affecting units above 0 elevation. Units spawned on the ground calling the function work as intended.

Details

Legacy ID
14364320
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Anims
Steps To Reproduce

In editor:

  • place player as OPFOR>CSAT>Men>Rifleman with ELEVATION set to 7.5 on the roof of the Old Outpost,
  • copy and paste player unit (so they are side by side on the roof),
  • add [this,"WATCH"] call BIS_fnc_ambientAnimCombat; to the non-player unit's init field,
  • Preview mission,
  • Observe that the AI unit is not affected by the called function.

Do the same with elevation for both set at 0 and observe function working as intended.

Event Timeline

GreigPil edited Additional Information. (Show Details)
GreigPil set Category to Anims.
GreigPil set Reproducibility to Always.
GreigPil set Severity to None.
GreigPil set Resolution to No Bug.
GreigPil set Legacy ID to 14364320.May 7 2016, 4:00 PM
GreigPil added a subscriber: GreigPil.

Horribly embarrassing oversight on my part, I think. Working fine now.