mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Stuff
This commit is contained in:
parent
104d1a1cc7
commit
7cc2628c53
@ -24,4 +24,4 @@ _config = ConfigFile >> "ACE_Triggers" >> _trigger;
|
||||
// If the onSetup function returns true, it is handled elsewhere
|
||||
if (isText(_config >> "onSetup") && {[_explosive,_magazine] call compile getText (_config >> "onSetup")}) exitWith {};
|
||||
|
||||
[ACE_player, getPosATL _explosive, _explosive getVariable [QGVAR(Direction), 0],_magazine, _trigger, [], _explosive] call ACE_Explosives_fnc_placeExplosive;
|
||||
[ACE_player, getPosATL _explosive, _explosive getVariable [QGVAR(Direction), 0],_magazine, _trigger, [], _explosive] call FUNC(placeExplosive);
|
||||
|
@ -118,13 +118,13 @@ GVAR(TweakedAngle) = 0;
|
||||
(QGVAR(virtualAmmo) call BIS_fnc_rscLayer) cutText ["", "PLAIN"];
|
||||
|
||||
if (GVAR(placeAction) == PLACE_APPROVE) then {
|
||||
systemChat "place";
|
||||
systemChat format ["place %1 - %2", _virtualPosASL, aslToAtl _virtualPosASL];;
|
||||
_placeAngle = 0;
|
||||
_expSetupVehicle = _setupObjectClass createVehicle (_virtualPosASL call EFUNC(common,ASLToPosition));
|
||||
if (isNull _attachVehicle) then {
|
||||
_placeAngle = _cameraAngle - GVAR(TweakedAngle) - 180;
|
||||
_expSetupVehicle setPosAsl _virtualPosASL;
|
||||
_expSetupVehicle setDir _angle;
|
||||
_expSetupVehicle setDir _placeAngle;
|
||||
} else {
|
||||
_modelOffset = _attachVehicle worldToModel (_virtualPosASL call EFUNC(common,ASLToPosition));
|
||||
_placeAngle = _cameraAngle - (getDir _attachVehicle) + 180;
|
||||
|
Loading…
Reference in New Issue
Block a user