Step 5 - Disable Manager
Add the Disable Manager
Referencing the Disable Manager
//Add this namespace to the top of the script to reference the adventure kit
using AdventurePuzzleKit;//This will disable the Player when you open the inventory
AKDisableManager.instance.DisablePlayerInventory(true);
//This will disable the Player when you open a keypad
AKDisableManager.instance.DisablePlayerKeypad(true);
//This will disable the default player
AKDisableManager.instance.DisablePlayer(true);
//This will disable the Player when you examine an item
AKDisableManager.instance.DisablePlayerExamine(true);AKDisableManager.instance.DisablePlayerInventory(false);
AKDisableManager.instance.DisablePlayerKeypad(false);
AKDisableManager.instance.DisablePlayer(false);
AKDisableManager.instance.DisablePlayerExamine(false);Basic setup for the Disable Manager
First Person Variables
Third Person Variables
Generic Variables
Code Snippet Example:
Last updated