SandboX: Difference between revisions

From GamerX.mp Wiki
Jump to navigation Jump to search
Line 28: Line 28:
* (OT) Set Object Texture
* (OT) Set Object Texture
* (MO) Move Object
* (MO) Move Object
* (OV) Attach Object to Vehicle


== Triggers ==
== Triggers ==

Revision as of 19:04, 19 September 2024

Description
Function Editing Chart when pressing *WALK KEY*.

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:

Available Actions

  • (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) Create Explosion

Upcoming Actions

  • (OT) Set Object Texture
  • (MO) Move Object
  • (OV) Attach Object to Vehicle

Triggers

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

Available Triggers

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

Upcoming Triggers

  • (PD) On Player Death
  • (OD) On Object 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.