mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
rules
This commit is contained in:
parent
a9b4f8e83b
commit
e6efc04756
8494 changed files with 495610 additions and 0 deletions
62
.cursor/rules/roblox/reference/engine/classes/Flag.yaml
Normal file
62
.cursor/rules/roblox/reference/engine/classes/Flag.yaml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# This file is automatically generated. Please don't edit it manually.
|
||||
# To submit a bug report on the content, see
|
||||
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
|
||||
|
||||
name: Flag
|
||||
type: class
|
||||
memory_category: BaseParts
|
||||
summary: |
|
||||
The Flag object helps you make 'capture the flag' style games.
|
||||
description: |
|
||||
The Flag is a unit spawned with a `Class.FlagStand` object, and will respawn
|
||||
when captured. When a player touches this object's Handle, which must be a
|
||||
child of the Flag object, which is a Part named "Handle", the flag will be
|
||||
added to the player's backpack and will appear in their hand. A player cannot
|
||||
select other weapons while carrying a flag, and can drop the flag at anytime
|
||||
by pressing "Backspace" on the keyboard. If the player carrying a flag steps
|
||||
onto another FlagStand of a different team color, the flag will be removed
|
||||
from the player's backpack and a point will be added to the user's
|
||||
leaderstats, if provided. The flag will then regenerate at the originating
|
||||
flag stand.
|
||||
code_samples: []
|
||||
inherits:
|
||||
- Tool
|
||||
descendants: []
|
||||
tags:
|
||||
- Deprecated
|
||||
deprecation_message: |
|
||||
The `Class.Flag` and `Class.FlagStand` objects were created to allow
|
||||
developers to make 'capture the flag' style games quickly. However they have
|
||||
been deprecated and developers are advised to design their own systems which
|
||||
will be more flexible and reliable.
|
||||
properties:
|
||||
- name: Flag.TeamColor
|
||||
summary: |
|
||||
The `Class.Team` this flag is for. Corresponds with the TeamColors in the
|
||||
`Class.Teams` service.
|
||||
description: |
|
||||
The `Class.Team` this flag is for. Corresponds with the TeamColors in the
|
||||
`Class.Teams` service.
|
||||
|
||||
The `Class.Flag` and `Class.FlagStand` objects were created to allow
|
||||
developers to make 'capture the flag' style games quickly.
|
||||
code_samples: []
|
||||
type: BrickColor
|
||||
tags: []
|
||||
deprecation_message: |
|
||||
This property was a part of the now deprecated `Class.Flag` service. It
|
||||
should not be used in new work.
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: Data
|
||||
serialization:
|
||||
can_load: true
|
||||
can_save: true
|
||||
capabilities:
|
||||
- Basic
|
||||
- Input
|
||||
methods: []
|
||||
events: []
|
||||
callbacks: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue