Adding a new permission

This page describes how to add new permissions into the game

To add a new permission into the game go to Assets/Content/Data/Traits/Identification/Permissions, right click and go Create -> Inventory -> Traits -> Permission, just name it accordingly.

To add the permission into a role, just add it to the Role Data's permission list

This permission can be checked inside of a script throught the Inventory class, by using the HasPermission function.

For example, the Security Locker currently checks for a Security permission to be both locked and unlocked. the Unlock Locker interaction checks for the permission by getting the player's inventory:

Last updated