Page 1 of 1

custom permissions, set via prototype stage

Posted: Sat Jun 29, 2024 8:56 pm
by LuziferSenpai
Hey,

it would be awesome if we could add custom new permissions.
How would that look?

For example if you want to disable a custom-input that you made, you would create this prototype.

Code: Select all

  {
    type = "permission",
    name = "NAME",
    action = "disable-input",
    input = "INPUT-NAME"
  }
But if you want to disable something in your script, you use:

Code: Select all

  {
    type = "permission",
    name = "NAME",
    action = "lua"
  }
For lua, changing this setting would be the same event trigger type as for a custom-input.
CustomInputEvent

But why?
- We got custom inputs, but no real or good way to disable them for a player
- It would allow modders to add permissions to specific parts of there mods, so multiplayer servers can handle that

Greetz,

Luzifer