Jump to content

Find player faction by name


Aki

Recommended Posts

In commands scripts currently it works like this (in this example my player is id 1):

Galaxy():findFaction(1) returns Faction of Aki,

Galaxy():findFaction("The Uhvoocgjoiqt Church") returns Faction of that Church,

Galaxy():findFaction("Aki") returns nil

Galaxy():findFaction("76561198082681701") returns nil

Galaxy():findFaction(Player(sender).name) returns nil

 

I have tried it with Player() in scope it was available:

Galaxy():findFaction(Player().name) returns nil

 

I'm pretty sure I could use it previously with player name as faction name.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...