Page MenuHomeFeedback Tracker

`forceWeaponFire` does not work when some animations are playing
New, NormalPublic

Description

When using forceWeaponFire on a unit their weapon will not fire if some animations are playing. Expected behavior is that the weapon should fire regardless of animation.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
Scripting
Steps To Reproduce
  1. Execute this code in debug console.
player addEventHandler ["Fired", {
    params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"];
    hintSilent "Weapon Fired";
}];

[] spawn {
    sleep 5;
    player forceWeaponFire [currentWeapon player,currentWeaponMode player];
};
  1. Begin sprinting.
  1. After the 5 second sleep the hint will be seen but the weapon will not fire.

Event Timeline

Drofseh created this task.Mar 3 2021, 5:25 AM
Drofseh renamed this task from `forceWeaponFire` does work when some animations are playing to `forceWeaponFire` does not work when some animations are playing.Mar 3 2021, 6:18 AM