OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: bigdave003 on 10 May 2007, 15:22:45
-
Is there any way to either disable the score board when you press I for all of the players? WGL5 for OFP blocked it out, could this be done with scripting or is this more to do with mods?
Cheers
-
WGL5 was a full scale mod right?
They would have made it so their mod could have the option to disable it. Original ArmA does not support this as far as I know. You might be able to doing some close dialog command or something to remove it, but I don't think it will work.
-
ACE, WGL's successor, will also have this feature.
-
Well Phaeden, how about a quick comment on how you plan to do this? Share and enjoy!
-
Just guessing.
Scoreboard, as any other display should hava a known IDD. Knowing this, you may run something like that in every client:
//Remove scoreboard SQF, execute with execVM
whilte {true} do
{
waitUntil {!isNull (findDisplay SCOREDISPLAYIDD)};
(findDisplay SCOREDISPLAYIDD) closeDisplay 0;
Sleep 0.5;
};
And how to detect display IDD SCOREDISPLAYIDD?
run this in a client and show the scoreboard
_min = 0;
_max = 300;
while {true} do
{
_msg = "";
for [{_i = _min},{_i <= _max},{_i=_i+1}] do
{
_display = findDisplay _i;
if ((!isNull _display)) then
{
_msg = _msg + format["%1: %2\n",_i, _display];
};
hint format["Displays (%1 to %2):\n%3",_min,_max,_msg];
};
Sleep 2;
};
If no results with range between 0 and 300, increase it, between 300 and 600 and so on until you get scoreboard display IDD.
EDIT:
the following displays seems to exist all the time in an MP game: 0,8,12,17,46,70
the following displays seems to exist all the time in an SP game: 0,12,26,46
So I guess any of these may be the score display IDD: 8, 17 or 70
-
Or, you probably can remove the whole scoreboard 'resource' from the game config..
I'm guessing this is the method WGL used instead of scripting :dunno:
(in OFP the resources were in their own separate resource.cpp..)