Inkko
Valued Member!
paste this at the end of your init.sqf (mpmission)
Code:if (!isDedicated) then { while {true} do { //hint str(typeof player); { if ( (typeof(_x) isKindOf "Bag_Base_EP1") and (_x getVariable ["Dupe", true]) ) then { _name = getText (configFile >> "CfgVehicles" >> typeof(_x) >> "displayName"); _x removeAction s_player_holderPickup; _x setVariable ["Dupe", false]; s_player_holderPickup = _x addAction [format[(localize "str_init_take"), _name], "custom\object_pickup.sqf",["CfgVehicles",typeof(_x),_x], 20, true, true]; }; } foreach (position player nearObjects 50); sleep 2; }; };
Then, make a custom folder and put your modified object_pickup.sqf in that folder
No more anti-Dupe
This seems to be working for me I just missed the 'and put your modified object_pickup.sqf in that folder'