Page MenuHomeFeedback Tracker

LockInventory does not work on backpack/weapon props placed in the editor
New, NormalPublic

Description

First, big thanks for adding this command.

It seems to have a sort of a bug though, it doesn't seem to fully work on backpack and weapon props placed in the editor (works fine otherwise).
It successfully removes the Inventory action from those but the Take and/or Open actions remain.
Would be nice to have also those locked.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. place a backpack prop
  2. preview -> Inventory, Take and Open actions appear when approaching it
  3. point at the backpack and exec cursorObject lockInventory true in the debug console
  4. Inventory action disappears but Take and Open remain
Additional Information

Tried all I could think of such as firstBackpack, everyBackpack and disabling simulation but no joy

Event Timeline

h- created this task.Nov 1 2020, 4:04 PM
dedmen added a subscriber: dedmen.Nov 2 2020, 12:15 PM

Backpack is complicated.
You place a backpack in 3DEN yes, but on mission start its deleted/moved into a weapon holder. And you would need to call the script on the weapon holder but not the backpack.

Take and Open actions are probably seperate yeah. This command in itself does what it was needed for/intended to do, everything beyond that is not a bug but a feature request. Actually this was only intended to lock vehicles.

h- added a comment.Nov 2 2020, 5:34 PM

It's nice to have this lock all inventories though so don't go "fixing" that :P

I guess one can block the actions with the setingameuieh, although it's not nominal because it's not stackable, and the action icons etc still appear.