Jump to content
johnnyboy

Prevent "Open pack" action appearing when near another unit

Recommended Posts

I'm working on a stealth silent team movement script, where player following an AI unit in file format.  It is immersion breaking when you get too close to another unit and "Open Pack..." action pops up in the middle of your screen.

 

Is there anyway to prevent these actions from appearing automatically in middle of screen?

Share this post


Link to post
Share on other sites

backpackContainer yourUnit lockInventory true;

remoteExec in MP

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
38 minutes ago, pierremgi said:

backpackContainer yourUnit lockInventory true;

remoteExec in MP

Thanks, that should work.  I guess I would want to add an action to unlock inventory later if needed by player.

 

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, johnnyboy said:

Thanks, that should work.  I guess I would want to add an action to unlock inventory later if needed by player.

 

Yes, except if you kill the guy.

  • Haha 1

Share this post


Link to post
Share on other sites

You can use addons like this one:

There's others, or write your own by editing class CfgActions and/or class CfgInGameUI.

  • Like 2
  • Thanks 1

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

×