Jump to content
Sign in to follow this  
spectrersg

Add Rating/Score Module

Recommended Posts

I've tried linking (syncing) the add rating/score module to objects and to players, and both together, and the thing does not want to work at all; does anyone know how to get this module to work since there doesn't seem to be any documentation on it yet.

I'd like to use this for a target range that will register a hit/kill on the multiplayer score (P key).

Thanks!

Edited by SpectreRSG

Share this post


Link to post
Share on other sites

Here is the script from the rating module

private ["_logic","_units","_rating","_score"];

_logic = [_this,0,objnull,[objnull]] call bis_fnc_param;
_units = [_this,1,[],[[]]] call bis_fnc_param;

//--- Extract the user defined module arguments
_rating = _logic getvariable ["rating",0];
_score = _logic getvariable ["score",0];

[_units,_rating,_score] spawn {
if (isMultiPlayer) then sleep 0.5; //<----------------- initialization of MP is slow, without it addScore does not work
_units = _this select 0;
_rating = _this select 1;
_score = _this select 2;	
{
	_x addRating _rating;
	_x addScore _score;	
} foreach _units;
};

true

Share this post


Link to post
Share on other sites

I too would like to know how to use it, especially how to auto display it at the completion of the mission. Does anyone have knowledge of this?

Share this post


Link to post
Share on other sites

Does anyone else know how to get this thing to add a point to a player(s) every time said player hits a target?

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  

×