Jump to content
Sign in to follow this  
Undeceived

Does player addMagazine "DemoCharge_Remote_Mag"; work for you since patch 1.12 ?

Recommended Posts

player addMagazine "DemoCharge_Remote_Mag";

For me it won't work since the new patch. My mission is broken now since 1.12.

Does this work for you?

The command addMagazine itself works - I can add rifle and pistol magazines. Only the charge doesn't appear in the gear menu resp. in the action menu ("Put charge").

Btw. I tested it and none of the "put" items (bombs, mines) seem to be added with addMagazine. Is there a new command to add these?

Edited by Undeceived

Share this post


Link to post
Share on other sites

Maybe an new locality issue?

is the unit you try to use addMagazine with local to where you execute the command?

for me its working 100% for where unit is local so far.

greetings Na_Palm

PS: try to use addMagazine_array

it states AL -> arguments have to be local

Edited by Na_Palm

Share this post


Link to post
Share on other sites

I found out what the problem is... There's simply not enough space for bombs in uniforms (at least in Stavros' uniform). :) :) When I have a backpack, it works...

Strange enough though, as it worked without backpack before. Maybe they changed / tuned the weight system.

Thanks anyway Na_Palm!

Share this post


Link to post
Share on other sites

Here, if it's a problem with the capacity, i use this for part of my unit outfitting:

//	Name: NP_fnc_addItemtoUnit.sqf
//	Version: 1.0
//	Author: Na_Palm
//	Description: add item/magazine/weapon to Unit
//-------------------------------------------------------------------------------------
private["_unit","_item","_canStore"];

_unit = _this select 0;
_item = _this select 1;

_canStore = false;
if (_unit canAddItemToUniform _item) then {
_unit addItemToUniform _item;
_canStore = true;
}else{
if (_unit canAddItemToVest _item) then {
	_unit addItemToVest _item;
	_canStore = true;
}else{
	if (_unit canAddItemToBackpack _item) then {
		_unit addItemToBackpack _item;
		_canStore = true;
	};
};
};
_canStore;

greetings Na_Palm

Share this post


Link to post
Share on other sites

That's a really clever little function. I wasn't aware of the canAddItemTo... commands.

Thanks for sharing :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×