Jump to content

Recommended Posts

Hey,

 

in the last mission of my campaign that I'm working with I want in last briefing mention player's real name like this:

 

player createDiaryRecord["Diary", ["1. THANKS FOR PLAYING!", "Hello ABCPlayer123 it's Unluckymonster, creator of this campaign. First of all congratulations, you are one cutscene away from finishing Nogova Crisis campaign! I hope you have enjoyed this far."]];

 

 

The thing works in nuxil's code-example in titleText but is there anyway it works in createDiaryRecords too?

 

https://forums.bistudio.com/forums/topic/87663-displaying-players-name-in-mp/

 

Share this post


Link to post
Share on other sites

name player;

 

Example use:

_myName = name player;

_myText = format [
	"Hello %1, it's Unluckymonster, creator of this campaign. First of all congratulations, you are one cutscene away from finishing Nogova Crisis campaign! I hope you have enjoyed this far.",
	_myName
	];

player createDiaryRecord ["Diary", ["1. THANKS FOR PLAYING!", _myText]];
  • Like 3

Share this post


Link to post
Share on other sites

Thanks phronk, that worked! Will mention you in campaign credits once I get it finished.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×