Page MenuHomeFeedback Tracker

AI animations broken when in statics that have been attached
New, NormalPublic

Description

AI animations are extremely bizzarre when they are inside of static weapons (GMGs, HMGs, or Mortars) that have been attached to another object with the attachTo command.

They function somewhat normally, and will engage and fire at enemies. However, they jerk about wildly, instantly aiming from one point to the next about every second. This occurs constantly, until several seconds after the AI soldier has been killed.

I am trying to create a script that will create machine gun bunkers all over the map, and periodically man them with AI soldiers. attachTo is a command that allows me to place these guns in the same place every time relative to the bunker itself, regardless of bunker orientation, and more importantly, prevent the machine gun from toppling over should it be struck by an explosive shell, as the machine guns themselves are invulnerable. However, the animation problems are quite visually jarring and render this command useless for this purpose.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Anims
Steps To Reproduce
  1. Go into the editor. Place Land_Cargo_Patrol_V1_F. Name the object "superbunker" in the editor.
  1. Place an I_HMG_high_F anywhere on the map. In the init field for this machine gun object, place the following:

this attachTo [superbunker, [-1.75, -1, 1.1]];
this setDir 180;

  1. Place a rifleman on the map. Set this rifleman as the player.
  1. Place another rifleman on the map, put this rifleman in the player's group.
  1. Start the game, and command the rifleman to get in the machine gun.
  1. Call an excorcist to purge the demon from your rifleman comrade.

Event Timeline