Arma 3
Animated Grenade Throwing
Custom SQF Params
Right now the mod have 2 vars in the params for custom scripts, [ _unit, _initiation]. Would it be possible to also add to params _ammo?
< >
Showing 1-5 of 5 comments
Apricot_ale 28 Jun, 2024 @ 3:44am 
["_unit", "_GrenadeBase", "_level", "_Phase", "_GrenadeType", "_initiation"]
Apricot_ale 28 Jun, 2024 @ 3:56am 
_unit = player; // thrower unit? _GrenadeBase = "groundweaponholder" createVehicle [0,0,0]; // _level = number, 11~33, throwing type and power. first 1~3 (ten) is type, second 1~3 (one) is power. maybe. (I'm not sure) // _phase = throwing phase, need for throwing script, do not use. _GrenadeType = (((getMagazineCargo _GrenadeBase) select 0) select 0); _initiation = ((configfile >> "CfgMagazines" >> ((currentThrowable _unit) select 0) >> "ammo") call BIS_fnc_GetCfgData) createVehicle [0,0,0];
Apricot_ale 28 Jun, 2024 @ 3:58am 
you can get _ammo for using
typeOf _initiation
Apricot_ale 28 Jun, 2024 @ 4:03am 
The reason I'm digging this up now is because I'm currently writing an alternative script that will allow ACE's flashbangs/flares/thermites to be thrown from AGT.
Incidentally, ACE's flashbangs etc. originally use the fired event handler, so it is absolutely impossible to load them as an AGT script. as is.
< >
Showing 1-5 of 5 comments
Per page: 1530 50