mission weapons crates not locked

  • Offline dekela
  • First Blood
  • ***
  • Posts: 79

mission weapons crates not locked

« posted: Jul 02, 2016, 05:24 AM »
Normally the mission weapon crates are locked until mission sucess, but mine are not. I have the following in all the mission sqf's.
Code: [Select]
{ _x setVariable ["R3F_LOG_disabled", true, true] } forEach [_box1, _box2];
using a vanilla 1.12b they work fine, although my modded version they do not. Anyone know what file i need to look at to fix this?
thanks
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2652

Re: mission weapons crates not locked

« Reply #1 posted: Jul 03, 2016, 02:59 PM »
you need both A3W_inventoryLockR3F and R3F_LOG_disabled. It's a dual flag to prevent boxes from having their inventory locked in case the admin only wants to disable R3F on non-mission crates. The first flag is normally set through fn_refillbox, and the second one is set in mission scripts.
  • Offline dekela
  • First Blood
  • ***
  • Posts: 79

Re: mission weapons crates not locked

« Reply #2 posted: Jul 04, 2016, 12:12 PM »
fixed, thanks