SandboX: Difference between revisions

From GamerX.mp Wiki
Jump to navigation Jump to search
No edit summary
Line 36: Line 36:
== Channels ==
== Channels ==
Channels associate triggers with their corresponding actions. Each channel can contain multiple triggers and multiple actions. When any trigger within a channel is executed, it activates all the actions associated with that channel.
Channels associate triggers with their corresponding actions. Each channel can contain multiple triggers and multiple actions. When any trigger within a channel is executed, it activates all the actions associated with that channel.


Workflow
Workflow
Line 41: Line 42:
Set Triggers: Establish the trigger(s) that will activate these actions.
Set Triggers: Establish the trigger(s) that will activate these actions.
Execution: When a trigger is activated, all associated actions within the channel are executed.
Execution: When a trigger is activated, all associated actions within the channel are executed.


Example
Example
Line 46: Line 48:
Channel: The channel associates the checkpoint trigger with the actions of spawning a vehicle and teleporting the player.
Channel: The channel associates the checkpoint trigger with the actions of spawning a vehicle and teleporting the player.
Action: When the player walks into the checkpoint, the vehicle spawns, and the player is teleported.
Action: When the player walks into the checkpoint, the vehicle spawns, and the player is teleported.
Benefits
Flexibility: Allows for multiple triggers and actions within the same slot, enabling complex in-game behaviors.
Dynamic Gameplay: Enhances player experience by introducing varied and automated events.
Ease of Management: Simplifies the association and execution of triggers and actions through the use of slots.

Revision as of 04:24, 8 August 2024

GX Function is a creative tool that enables players to create in-game functions with the use of actions and triggers. Actions can be triggered by specific conditions, enhancing gameplay by introducing dynamic interactions and automated events.


Actions

Actions are activations of functions that players can initiate within the game. Action types include:

  • (DA) Destroy Action
  • (SV) Spawning Vehicles
  • (SP) Spawning Pickups
  • (TP) Teleport
  • (CM) Client Message
  • (TD) TextDraw
  • (GT) Game Text
  • (SH) Set Health
  • (DI) Disarm
  • (TI) Set Timer
  • (GG) Give Gun
  • (CO) Create Object
  • (CP) Create Checkpoint
  • (CC) Initiate Cinematic Camera Mode
  • (PS) Play Sound
  • (FP) Freeze Player
  • (EX) Creat Explosion


Triggers

Triggers are conditions that activate an action. Trigger types include:

  • (CP) On Enter Checkpoint
  • (SP) On Pickup
  • (CO) On Moving Object Start or Stop
  • (TI) On Timer End
  • (SV) On Vehicle Destroyed


Channels

Channels associate triggers with their corresponding actions. Each channel can contain multiple triggers and multiple actions. When any trigger within a channel is executed, it activates all the actions associated with that channel.


Workflow Define Actions: Identify and define the actions in the desired channel. Set Triggers: Establish the trigger(s) that will activate these actions. Execution: When a trigger is activated, all associated actions within the channel are executed.


Example Trigger: A player walks into a checkpoint. Channel: The channel associates the checkpoint trigger with the actions of spawning a vehicle and teleporting the player. Action: When the player walks into the checkpoint, the vehicle spawns, and the player is teleported.