Jump to content

How to close Inventory screen via script?

Recommended Posts

I've made some armour sets and when all pieces are equipped, the character receives additional bonuses via a .BCS script.

I added some visual effects and floating text to play when the bonuses are enabled. In Single Player, the player can see the effects and text after leaving the Inventory screen as the game is automatically paused. In Multiplayer, the Inventory screen doesn't pause the game so if a player equips all set armour pieces, the effects and text can be missed.

I couldn't find a function that closes the Inventory screen. A workaround is using StartCutSceneMode() before the effects and text plays, and adding EndCutSceneMode() at the end.

Is there a more ideal function to use to close the Inventory screen?

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...