Forum Jump :

Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#191490 Posted at 2016-09-01 04:47        
     
Infinite shoot at popup target.
Name the popup taget (example: cible)
In init field of the sniper, or thru a trigger (then name the sniper also):

0 = this spawn {
  while {alive _this} do {
  _this removeMagazines (currentMagazine _this);
  _this setAmmo [primaryWeapon _this, 1];
  sleep 3;
  _this doTarget cible;
  _this doFire cible;
  sleep 7
  }
}

These is always one bullet added before the shoot;
the sleep works because there is no more bullet in loaded magazine. If you let 7 bullets, dofire doesn't cope with sleep and the cadence depends on the gun hard coded parameter only.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS