Fixed small errors caused by working blind.

This commit is contained in:
Garth L-H de Wet 2015-03-31 19:26:38 +02:00
parent 9c13a87d83
commit 8158a3e841
4 changed files with 5 additions and 9 deletions

View File

@ -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;

View File

@ -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), ""]);
/*
[{

View File

@ -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);

View File

@ -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;