SandboX: Difference between revisions

From GamerX.mp Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Sa-mp-748.png|right|thumb|alt=Description|Function Editing Chart when pressing *WALK KEY*.]]
[[File:Sa-mp-748.png|right|thumb|alt=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.
SandboX the ultimate sandbox tool is a creative tool that enables players to create in-game functions. Functions under the right condition can be triggered and call other functions, enhancing gameplay by introducing dynamic interactions and automated events.




== Actions ==
== Functions ==
Actions are activations of functions that players can initiate within the game. Action types include:
Functions define specific actions that players can initiate within the game. Function types include:


===Available Actions===
===Available Functions===
* (DA) Destroy Action
* (DA) Destroy Function
* (SV) Spawning Vehicles
* (SV) Spawning Vehicles
* (SP) Spawning Pickups
* (SP) Spawning Pickups
Line 25: Line 25:
* (EX) Create Explosion
* (EX) Create Explosion


===Upcoming Actions===
===Upcoming Functions===
* (OT) Set Object Texture
* (OT) Set Object Texture
* (MO) Move Object
* (MO) Move Object
* (OV) Attach Object to Vehicle
* (OS) Load Object Set
* (VC) Turn vehicle collision off
* (AF) Enable autofix
* (GM) Enable godmode


== Triggers ==
===Event Functions===
Triggers are conditions that activate an action. Trigger types include:
* (GP) Give Point
* (RP) Remove Point


===Available Triggers===
== Conditions ==
Under the right condition functions can trigger functions. Condition types include:
 
===Available Conditions===
* (CP) On Enter Checkpoint
* (CP) On Enter Checkpoint
* (SP) On Pickup
* (SP) On Pickup
Line 39: Line 48:
* (SV) On Vehicle Destroyed
* (SV) On Vehicle Destroyed


===Upcoming Triggers===
===Upcoming Conditions===
* (PD) On Player Death
* (PD) On Player Death
* (OD) On Object Destroyed
* (OD) On Object Destroyed


== 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 connect triggers to associated functions. Channels act as intermediaries for flexibility and modularity. Each channel may contain multiple conditions and multiple functions. When any condition within a channel is met, it calls all the functions associated with that channel.


===Random Channel===
(Upcoming update)
During the channel selection process, typing r instead of a channel number will allow the selection of multiple channels. When the associated condition is met a random channel will be selected.


== Workflow ==
== Workflow ==
* Conditions: Logical checks, events or states that initiate the process (e.g., car explosion, checkpoint entry, on pickup).
* Channels: Channels act as intermediaries that call associated functions.
* Functions: Define specific actions (e.g., spawn vehicle, teleport player, give weapon).


Define Actions: Identify and define the actions in the desired channel.
== Upcoming Features ==
 
===SandboX Debugging Mode===
Set Triggers: Establish the trigger(s) that will activate these actions.
When debugging mode is enabled, players will receive messages when certain functions and conditions are called.  
 
* Level 1 - Only conditions and functions that relate to the player are displayed.
Execution: When a trigger is activated, all associated actions within the channel are executed.
* Level 2 - Conditions and functions that relate to the player and their team are displayed.
 
* Level 3 - All conditions and functions are displayed.
 
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.

Latest revision as of 04:54, 15 December 2024

Description
Function Editing Chart when pressing *WALK KEY*.

SandboX the ultimate sandbox tool is a creative tool that enables players to create in-game functions. Functions under the right condition can be triggered and call other functions, enhancing gameplay by introducing dynamic interactions and automated events.


Functions

Functions define specific actions that players can initiate within the game. Function types include:

Available Functions

  • (DA) Destroy Function
  • (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 Functions

  • (OT) Set Object Texture
  • (MO) Move Object
  • (OV) Attach Object to Vehicle
  • (OS) Load Object Set
  • (VC) Turn vehicle collision off
  • (AF) Enable autofix
  • (GM) Enable godmode

Event Functions

  • (GP) Give Point
  • (RP) Remove Point

Conditions

Under the right condition functions can trigger functions. Condition types include:

Available Conditions

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

Upcoming Conditions

  • (PD) On Player Death
  • (OD) On Object Destroyed

Channels

Channels connect triggers to associated functions. Channels act as intermediaries for flexibility and modularity. Each channel may contain multiple conditions and multiple functions. When any condition within a channel is met, it calls all the functions associated with that channel.

Random Channel

(Upcoming update) During the channel selection process, typing r instead of a channel number will allow the selection of multiple channels. When the associated condition is met a random channel will be selected.

Workflow

  • Conditions: Logical checks, events or states that initiate the process (e.g., car explosion, checkpoint entry, on pickup).
  • Channels: Channels act as intermediaries that call associated functions.
  • Functions: Define specific actions (e.g., spawn vehicle, teleport player, give weapon).

Upcoming Features

SandboX Debugging Mode

When debugging mode is enabled, players will receive messages when certain functions and conditions are called.

  • Level 1 - Only conditions and functions that relate to the player are displayed.
  • Level 2 - Conditions and functions that relate to the player and their team are displayed.
  • Level 3 - All conditions and functions are displayed.