Jump to content
Sign in to follow this  
roguetrooper

How to use "Eventhandler HandleScore"?

Recommended Posts

How do you use "Eventhandler HandleScore" to prevent a unit (players and playable AI) from getting any kind of score shown in the MP score table?

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleScore

 

I know that the main syntax is _unit addeventhandler ["HandleScore", {  } ];

and and that the score that is applied is "_this select 2"

 

But I don't know how to utilize it to disable scoring for the unit.

Share this post


Link to post
Share on other sites

According to the wiki, if you make the event handler return false, then the score won't get added.

That being said, you don't actually need to use "_this select 2" at all for what you're wanting to do.

The following code should work: _unit addEventHandler ["Handlescore", {false}]

Share this post


Link to post
Share on other sites

Lol, I think I had tested the code you have provided on my own before I've posted here. I must have made a minor mistake. It works. Thank you anyway.

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
Sign in to follow this  

×