武装突袭3

武装突袭3

Animated Grenade Throwing
Lockheed 2023 年 5 月 17 日 上午 10:18
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?
< >
正在显示第 1 - 5 条,共 5 条留言
Apricot_ale 2024 年 6 月 28 日 上午 3:44 
["_unit", "_GrenadeBase", "_level", "_Phase", "_GrenadeType", "_initiation"]
Apricot_ale 2024 年 6 月 28 日 上午 3:56 
_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 2024 年 6 月 28 日 上午 3:58 
you can get _ammo for using
typeOf _initiation
Apricot_ale 2024 年 6 月 28 日 上午 4:03 
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.
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50