Action Restriction Node: Difference between revisions
Created page with "== Action Restriction Node == The `ActionRestrictionNode` is a module that manages all items of the type 'ActionRestrictionNode' within a game. It primarily deals with setting and modifying the available actions and movements a player can perform in the game. Its key features and options include: * Restrictions on the number of jumps a player can make. * Option to allow or disallow the use of a backpack. * Controls on whether a player is allowed to 'Sprint', 'Mantle',..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
== Action Restriction Node == | == Action Restriction Node == | ||
Line 25: | Line 26: | ||
*Set `PlayerId` to the Id of the desired player. | *Set `PlayerId` to the Id of the desired player. | ||
*Activate the node for the player with settings: | *Activate the node for the player with settings: | ||
`Jumps` set to `1`. | **`Jumps` set to `1`. | ||
`Allow Sprint` set to `False`. | **`Allow Sprint` set to `False`. | ||
==== Global Restrictions ==== | ==== Global Restrictions ==== | ||
Line 33: | Line 34: | ||
*Activate the node globally with settings: | *Activate the node globally with settings: | ||
`Jumps` set to `2`. | **`Jumps` set to `2`. | ||
`AllowBackpack` set to `False`. | **`AllowBackpack` set to `False`. | ||
==== Reverting Restrictions ==== | ==== Reverting Restrictions ==== | ||
Line 41: | Line 42: | ||
Please note, `ActionRestrictionNode` checks for validity at each step, ensuring that any applied restrictions are valid and actionable. It responds accordingly when a player joins or leaves the game. | Please note, `ActionRestrictionNode` checks for validity at each step, ensuring that any applied restrictions are valid and actionable. It responds accordingly when a player joins or leaves the game. | ||
Latest revision as of 08:12, 7 May 2024
Action Restriction Node[edit]
The `ActionRestrictionNode` is a module that manages all items of the type 'ActionRestrictionNode' within a game. It primarily deals with setting and modifying the available actions and movements a player can perform in the game. Its key features and options include:
- Restrictions on the number of jumps a player can make.
- Option to allow or disallow the use of a backpack.
- Controls on whether a player is allowed to 'Sprint', 'Mantle', 'WallRun', 'Evade', 'Aim', and 'Hipfire'.
- These settings apply both globally and on a per-player basis.
Usage[edit]
`ActionRestrictionNode` comes with a set of default action restrictions, that can be overridden or altered as per requirement.
- The basic usage involves placing this node within your game editor, and configuring the action restrictions as needed.
- Restrictions are applied via the `ModuleLogic` when the item is activated for a player or globally.
- Equally, upon deactivation, the restrictions are reverted to the default settings.
- The `PlayerId` option allows targeting specific players for applying or removing restrictions.
Examples[edit]
Restricting Sprint and Jumps for a Player[edit]
To restrict a specific player from sprinting and allow them only 1 jump, the `ActionRestrictionNode` can be configured as:
- Set `PlayerId` to the Id of the desired player.
- Activate the node for the player with settings:
- `Jumps` set to `1`.
- `Allow Sprint` set to `False`.
Global Restrictions[edit]
A scenario where all players are restricted from using Backpacks and are allowed only 2 jumps can be configured as:
- Activate the node globally with settings:
- `Jumps` set to `2`.
- `AllowBackpack` set to `False`.
Reverting Restrictions[edit]
Reverting any restrictions applied can be achieved by deactivating the node for a specific player or globally, as per the situation. Deactivation automatically reverts the settings to default.
Please note, `ActionRestrictionNode` checks for validity at each step, ensuring that any applied restrictions are valid and actionable. It responds accordingly when a player joins or leaves the game.