Jump to content

Recommended Posts

I would like to know if it is possible to show the persons name with the highest score on the screen at the end of my mission. My mission ends with a countdown module and there is an option under "End type after countdown gets to 0" stating "player with the best score wins." I want to know if there is a way I can show that person with the highest score on my outro camera before the mission ends. (I have my mission set to end shortly after my outro camera is done doing its shots.) I am a major noob to scripting and making missions so if you know how to do what I am asking then, if possible, please explain in detail what exactly you did. Thanks in advance.

Share this post


Link to post
Share on other sites

You haven't explained what the winning condition is?

 

Is it:-

who swam underwater the furthest?

who remained still the longest?

who said the most?

who walked the furthest?

who took off their clothes the most?

who reloaded their gun the most?

who swapped their gun the most?

who fell through the sky the longest?

who drove a car the most?

who healed their squad the most?

who spotted their target over the longest distance?

 

or perhaps something else?

 

 

For EACH of these conditions (and indeed many more) it is possible to measure and display the winner in the ARMA engine.

 

All we need you to tell us is which winning condition it is..

  • Like 1

Share this post


Link to post
Share on other sites

You haven't explained what the winning condition is?

 

Is it:-

who swam underwater the furthest?

who remained still the longest?

who said the most?

who walked the furthest?

who took off their clothes the most?

who reloaded their gun the most?

who swapped their gun the most?

who fell through the sky the longest?

who drove a car the most?

who healed their squad the most?

who spotted their target over the longest distance?

 

or perhaps something else?

 

 

For EACH of these conditions (and indeed many more) it is possible to measure and display the winner in the ARMA engine.

 

All we need you to tell us is which winning condition it is..

Sorry for the late reply but the winning condition would be the player with the most kills. Thanks for the fast response!

 

Now that I think about it. Is it possible to show multiple players on the screen. For example:

 

"Player" stayed alive the longest "players longest time alive"

"Player" had the most kills "players kill count"

"Player" revived the most squad members "players amount of revives"

 

These are just examples and would also like to know if multiple conditions could be set like this.

Edited by surgicaltalents

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/Debriefing#Custom_Sections

 

In your description.ext:

class CfgDebriefingSections
{
	class timeAlive
	{
		title = "Longest Time Alive";
		variable = "surgical_timeAlive";
	};
	class killCount
	{
		title = "Kill Count";
		variable = "surgical_killCount";
	};
	class reviveCount
	{
		title = "Most Revived";
		variable = "surgical_mostRevived";
	};
};

Then set your variables like:

surgical_killCount = "kylania killed 11 baddies total!";

and it'll look like this:

 

TnYK2DN.jpg

 

You can also use format for this to add images:

surgical_killCount = format["<img size='3' image='%1'/><br/>Your %2 will expire in %3 rounds!", getText (configFile >> "cfgVehicles" >> "B_GMG_01_high_F" >> "picture"), name player, 3];

FvHH9Uf.jpg

  • Like 1

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/Debriefing#Custom_Sections

 

In your description.ext:

class CfgDebriefingSections
{
	class timeAlive
	{
		title = "Longest Time Alive";
		variable = "surgical_timeAlive";
	};
	class killCount
	{
		title = "Kill Count";
		variable = "surgical_killCount";
	};
	class reviveCount
	{
		title = "Most Revived";
		variable = "surgical_mostRevived";
	};
};

Then set your variables like:

surgical_killCount = "kylania killed 11 baddies total!";

and it'll look like this:

 

TnYK2DN.jpg

 

You can also use format for this to add images:

surgical_killCount = format["<img size='3' image='%1'/><br/>Your %2 will expire in %3 rounds!", getText (configFile >> "cfgVehicles" >> "B_GMG_01_high_F" >> "picture"), name player, 3];

FvHH9Uf.jpg

Thanks for the detailed reply, but I am confused on one part. Where would I set the variables at? Would it be in the same description.ext or would it be in an .sqf? Or would it be in a triggers condition? 

Share this post


Link to post
Share on other sites

In a function or trigger sure.  Depends on how you're tracking those values.  You can get kills and deaths from the getPlayerScores score.  For longest time alive you'll need to track time from onPlayerRespawn to an MPKilled EventHandler.  For amount of revives.. umm.. not sure how to get access to that honestly.  Maybe monitor animations?

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

×