Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

What does IProfile.Name do?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Ol1vver
Fighter
Fighter
Posts: 44
Joined: Mon Nov 19, 2018 4:55 pm
SFD Alias: Ol1vver
Started SFD: PreAlpha 1.6
Gender:

What does IProfile.Name do?

Post by Ol1vver » Tue Aug 27, 2019 4:35 pm

So I've been thinking of what IProfile.Name does. "Profile ID" exists when opening profiles, so maybe it gets the Profile ID, but when I set the profile ID b y editing the profileinfo itself and try to get it using IProfile.Name, I get absolutely nothing.

Edit: It actually gets the Player name, not the Profile ID. So what's the point in having it if there's IPlayer.Name?
0 x
Why are you reading my signature?

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 496
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 21

Post by JakSparro98 » Tue Aug 27, 2019 6:47 pm

Ol1vver wrote:
Tue Aug 27, 2019 4:35 pm
So I've been thinking of what IProfile.Name does. "Profile ID" exists when opening profiles, so maybe it gets the Profile ID, but when I set the profile ID b y editing the profileinfo itself and try to get it using IProfile.Name, I get absolutely nothing.

Edit: It actually gets the Player name, not the Profile ID. So what's the point in having it if there's IPlayer.Name?
IProfile.Name is binded to IPlayer.Name to allow a complete player respawn, you can keep, for instance, bots names, for future re-instancing.

Profile ID was the result of a leftover feature for bot names, as Gurt said some time ago:
Gurt wrote:
Sat May 12, 2018 5:14 pm
The profile name is not used to anything as we decided that you must not be able to change the name of a real player. It's more of a left over right now as we remade how you name bots. In the release version of the game you will be able to change the name of a bot through the ScriptAPI as well.
1 x

Post Reply