Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-04-01 07:02        
     
This little snippet is short and sweet: every time you fire a bullet, it spawns a missile with the same speed and trajectory. It's spawned about a meter in front of you in case you want to shoot out windows. Spawn distance is a variable, so if you want it to spawn 10M in front so you don't blow yourself up you can.

this addeventhandler ["fired", {
  _bullet = nearestObject [_this select 0,_this select 4];
  _bulletpos = getPosASL _bullet;
  _o = "M_AT" createVehicle _bulletpos;
  _weapdir = player weaponDirection currentWeapon player;
  _dist = 1;
  _o setPosASL [
    (_bulletpos select 0) + (_weapdir select 0)*_dist,
    (_bulletpos select 1) + (_weapdir select 1)*_dist,
    (_bulletpos select 2) + (_weapdir select 2)*_dist
  ];
  _up = vectorUp _bullet;
  _o setVectorDirAndUp[_weapdir,_up];
  _o setVelocity velocity _bullet;
}];


Author Message


Posts: 38
Rank:


Level: Member

Country: tz
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2016-04-07 04:03        
     
Dude... awesome!

Thanks for this, add it to the script archive!


Advertisement


Author Message


Posts: 1589
Rank:


Level: Member

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

 
#3 Posted at 2016-04-07 04:57        
     
This script is not optimized, gives thrill on a 6 year old minded player and ruins the interest of Arma3. If script library is widely open to workable and smart scripts, the aim is not to promote any "lame duck" idea or cheat codes.

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

Author Message


Posts: 38
Rank:


Level: Member

Country: tz
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2016-04-07 23:55        
     
Yea man... isn't it awesome