-
Notifications
You must be signed in to change notification settings - Fork 1
Checkpoint Functions
DizzasTeR edited this page Nov 16, 2020
·
4 revisions
- Checkpoint.type() — Returns Checkpoint type (string "Checkpoint")
- Checkpoint.findByID(int id) — Returns a Checkpoint with the matching id, nil otherwise
- Checkpoint.count() — Returns the total number of Checkpoint instances right now (Checkpoint count)
- Checkpoint.getActive() — Returns a table of all checkpoints
Note: Player can be passed as nil to create the checkpoint for all players
Checkpoint:new(Player createFor, int world, bool isSphere, table position, table color4, float radius)
Checkpoint:new(Player createFor, int world, bool isSphere, float x, float y, float z, table color4, float radius)- getType() — Same as static type
- getID() — Return Checkpoint's ID
- destroy() — Destroys and deletes the Checkpoint
- streamedForPlayer(Player player) — Is the Checkpoint streamed for player or not (bool)
- getOwner() — The owner player or nil/-1 if created for all
- isSphere() — Is the Checkpoint a sphere or not
- data — Table
- position — Table
- world — int
- radius — float
- color — table {r, g, b, a}
- alpha — int