Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
SaarPlayTV

Rename player with command

Recommended Posts

Hi Guys,
I am looking for a player with a command to give another name. maybe with player.SetName ()?

sorry for my englich :-/

Share this post


Link to post
Share on other sites

Just right click on DayZ in your steam library, and pick "Launch DayZ launcher", you can set a parameter for your name there. :-) 

Share this post


Link to post
Share on other sites

 

For example, in the current game I mean Player A goes in Radius A and script executes (player.SetName ("Blue"))

Share this post


Link to post
Share on other sites

Would be nice to set random names from a array to survivor(3) for example :P
maybe on even depending on the sex of the character.

I really need to make time, I have so many ideas

Share this post


Link to post
Share on other sites

You can try to overwrite the function GetName and GetFullName of the PlayerIdentity. So with server side modding. It is located in 3_Game/gameplay.c.

Share this post


Link to post
Share on other sites
override proto native void  SetCharacterName(int index, string newName);

string newName = "Tester";
    SetCharacterName(newName);

it could look like this ??

Sorry I'm learning to doing 

Share this post


Link to post
Share on other sites

Looks like you will have no luck with that. Tried it with

modded class PlayerIdentity {
	
	string newplayername = "Survivor";

	override string GetName() {
		return newplayername;
	}
	
	override string GetFullName() {
		return newplayername;
	}
	
	void SetName(string name) {
		newplayername = name;
	}
}

but DayZ already stops me at the first line, when i want to mod the class.

nomoddingerror.png

LBmaster

Edited by lbmaster

Share this post


Link to post
Share on other sites
On 20-11-2018 at 10:15 PM, lbmaster said:

Looks like you will have no luck with that. Tried it with


modded class PlayerIdentity {
	
	string newplayername = "Survivor";

	override string GetName() {
		return newplayername;
	}
	
	override string GetFullName() {
		return newplayername;
	}
	
	void SetName(string name) {
		newplayername = name;
	}
}

but DayZ already stops me at the first line, when i want to mod the class.

nomoddingerror.png

LBmaster

well, that a awnser for this topic.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×