world_setup:game_features:racing
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| world_setup:game_features:racing [2023/05/12 21:02] – created mit | world_setup:game_features:racing [2025/05/28 18:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Racing ===== | ===== Racing ===== | ||
| - | Worlds can have a number of different race courses defined. You create these by setting up checkpoints along the course that the player must travel across, along with a starting region and finishing line. Defining the course is done through the in-game World Editor. | + | Worlds can have a 4 different race courses defined. You create these by setting up checkpoints along the course that the player must travel across, along with a starting region and finishing line. Defining the course is done through the in-game World Editor. |
| Races can be run either by having one player (or admin) ' | Races can be run either by having one player (or admin) ' | ||
| Line 9: | Line 9: | ||
| < | < | ||
| *racejoin [player_name] [course_num] [Spawn_Mode] | *racejoin [player_name] [course_num] [Spawn_Mode] | ||
| - | *racestart [course_num] [start_mode] | + | *racestart [course_num] |
| *raceleave [player_name] [course_num]</ | *raceleave [player_name] [course_num]</ | ||
| Line 22: | Line 22: | ||
| ==== Racing Script Events & Sys Function==== | ==== Racing Script Events & Sys Function==== | ||
| - | **RaceStart** | + | **RaceStart** |
| - | **RaceEnd** | + | **RaceEnd**\\ |
| - | **RaceWinner** : Triggered with the details of the player who won the race. | + | **RaceWinner** : Triggered with the details of the player who won the race.\\ |
| + | \\ | ||
| + | **sysRaceIsActive( [course_num] )** can be used in script to find out if a race course is currently active.\\ | ||
| - | **sysRaceIsActive( [course_num] )** can be used in script to find out if a race course is currently active. | ||
| + | ==== Automated Races through Settings ==== | ||
| - | === Automated Races through Settings === | + | There are some settings that can be used to allow races to be created without script, and change the behaviour of races when they' |
| - | TBD | + | '' |
| + | Determines the vehicle that the player is set to if they join a race (If '' | ||
| + | |||
| + | '' | ||
| + | **0**: No effect\\ | ||
| + | **1**: Players are not allowed to join an automated race without a '' | ||
| + | **2**: Players are only allowed to join if they' | ||
| + | **3**: Mode for local-only races. Probably doesnt work.\\ | ||
| + | **4**: Just sets the players vehicle to '' | ||
| + | **5**: Only sysops are allowed to use the 'Start Race' button *\\ | ||
| + | \\ | ||
| + | * (Note, how you get the 'Start Race' button to appear needs to be documented. Its somewhere in some weird menu settings :] )\\ | ||
world_setup/game_features/racing.1683925330.txt.gz · Last modified: (external edit)
