forceWeaponFire – Talk

From Bohemia Interactive Community
Revision as of 12:53, 11 January 2023 by Lou Montana (talk | contribs) (Text replacement - "<code>" to "<code style="display: block">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

With the absence of official world on locality I tested this using this script:

if (isDedicated) then { sleep 10; _player = playableUnits select 0; _player forceWeaponFire [currentWeapon _player, "FullAuto"]; diag_log [_player, "command done"]; };

The firemode changed but it didn't make my rifle fire. It works locally no problem. Added note to description to reflect this. -- KK