#Team / Gang System

1 messages · Page 1 of 1 (latest)

ivory grove
#

well you can't make this in standalone rec room

compact sorrel
#

Just use tags

#

When a player joins a gang, give them a tag based off the name of a gang

The person at index 0 of Get All Players With Tag is the gang leader, as this is the oldest player in the gang

When creating a gang, check if the first player with the tag is valid. If they are valid, tell them the gang cant be created as a gang with that name already exists. Else create the gang by adding that tag to the player

#

yes, that is how lists work

#

rather, that is how Get All Players With Tag works

#

its tags, not roles

#

tags are dynamic

#

A player can have up to 5 tags, each tag can be up to 25 characters long

ivory grove
#

my bad i thought you mean't you can't take the name at all for every server

compact sorrel
#

wdym "in the game"?

#

Use Has Tag

#

Oh so you want to check if they are in any gang, not just a specific gang

#

in that case yes, you can check if they have more than 0 tags

ivory grove
#

give them another tag like In Gang if you have multiple tags for the player

#

oh wait nvm

compact sorrel
ivory grove
#

fair