mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed small errors caused by working blind.
This commit is contained in:
parent
9c13a87d83
commit
8158a3e841
@ -57,6 +57,7 @@ class CfgVehicles {
|
||||
|
||||
class Items_base_F;
|
||||
class ACE_Explosives_Place: Items_base_F {
|
||||
XEH_ENABLED;
|
||||
author = "ACE";
|
||||
_generalMacro = "ACE_Explosives_Place";
|
||||
displayName = "Multi-meter";
|
||||
@ -88,7 +89,7 @@ class CfgVehicles {
|
||||
displayName = "$STR_ACE_Explosives_Pickup";
|
||||
distance = 4;
|
||||
condition = "true";
|
||||
statement = QUOTE(_player addMagazine (_target getVariable QUOTE(QGVAR(class)));destroyVehicle _target;);
|
||||
statement = QUOTE(_player addMagazine (_target getVariable QUOTE(QGVAR(class)));deleteVehicle _target;);
|
||||
showDisabled = 0;
|
||||
exceptions[] = {};
|
||||
priority = 5;
|
||||
|
@ -42,6 +42,7 @@ _player setVariable [QGVAR(PlantingExplosive), true];
|
||||
_setup addEventHandler ["EpeContactStart", FUNC(onLanded)];
|
||||
_setup enableSimulationGlobal true;
|
||||
_player playActionNow "MedicOther";
|
||||
_player removeMagazine (_setup getVariable [QGVAR(Class), ""]);
|
||||
|
||||
/*
|
||||
[{
|
||||
|
@ -16,7 +16,7 @@
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
private ["_magazine","_trigger"];
|
||||
private ["_config"];
|
||||
closeDialog 0;
|
||||
call EFUNC(interaction,hideMenu);
|
||||
EXPLODE_3_PVT(_this,_explosive,_magazine,_trigger);
|
||||
|
@ -24,13 +24,7 @@ GVAR(placer) = _unit;
|
||||
GVAR(Setup) = createVehicle [getText(ConfigFile >> "CfgMagazines" >> _class >> "ACE_SetupObject"),[0,0,-10000],[], 0, "NONE"];
|
||||
|
||||
GVAR(Setup) enableSimulationGlobal false;
|
||||
GVAR(Setup) setVariable [QGVAR(class), _class];
|
||||
private "_container";
|
||||
_container = [GVAR(Setup),"",QUOTE(PATHTOF(UI\Explosives_Menu_ca.paa)),"",{}, {true}, 4] call EFUNC(interact_menu,addAction);
|
||||
[_container,"Set Trigger", QUOTE(PATHTOF(UI\Explosives_Menu_ca.paa)),"",
|
||||
{[_target getVariable QGVAR(class),_target] call FUNC(openTriggerSelectionUI)}, {true}, 4] call EFUNC(interact_menu,addAction);
|
||||
[_container,"Pick up", QUOTE(PATHTOF(UI\Explosives_Menu_ca.paa)),"",
|
||||
{ACE_Player addMagazine (_target getVariable QGVAR(class));deleteVehicle _target;}, {true}, 4] call EFUNC(interact_menu,addAction);
|
||||
GVAR(Setup) setVariable [QGVAR(class), _class, true];
|
||||
|
||||
[_unit, "ACE_Explosives", true] call EFUNC(common,setForceWalkStatus);
|
||||
GVAR(TweakedAngle) = 180;
|
||||
|
Loading…
Reference in New Issue
Block a user