SandboX: Difference between revisions

From GamerX.mp Wiki
Jump to navigation Jump to search
Line 39: Line 39:


Workflow
Workflow
Define Actions: Identify and define the actions in the desired channel.
Define Actions: Identify and define the actions in the desired channel.
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
Trigger: A player walks into a checkpoint.
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.
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.

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.