I know i can spawn player models, but is there any way i could change their name. Say I wanna spawn a player called James.
Change name of spawned player?
You probably need NPC plugin to do that and actually create a NPC called whatever name you wish. I'm almost 100% you cannot name player model through console
entity.ToPlayer().displayName = "James";
or spawn
var newPlayer = GameManager.server.CreateEntity("assets/prefabs/player/player.prefab", position, rotation).ToPlayer();
or spawn
var newPlayer = GameManager.server.CreateEntity("assets/prefabs/player/player.prefab", position, rotation).ToPlayer();
Yes, this question also interests me. I know that through command I can spawn players 'entity.spawn player'
I would like to change his name to for example "Johnny" is that possible ?