Is there a way to compare a player variable with the same variable for another player?
Eg, if player A "FavColour" == player B "FavColour", then do *something*
For context, I'm looking to create a basic faction system using player variable to store the faction number, then use that to compare players in a PvP situation. If a player kills someone of the same faction, they lose points. Different factions, they gain points.
If anyone can shed light, I'd be grateful. Cheers.
Question
AlfyG
Hi all,
Is there a way to compare a player variable with the same variable for another player?
Eg, if player A "FavColour" == player B "FavColour", then do *something*
For context, I'm looking to create a basic faction system using player variable to store the faction number, then use that to compare players in a PvP situation. If a player kills someone of the same faction, they lose points. Different factions, they gain points.
If anyone can shed light, I'd be grateful. Cheers.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now