Hallo.
Ich habe mich jetzt in die Dialoge und RSC Sachen etwas reingelesen und das "Grundlegende" verstanden.
Ich habe nun ein Scoreboard gemacht das 2 Scores anzeigen soll. Score a und Score c.
Scores werden wie folgt gezählt:
C
while {triggerActivated Objective_2}
do
{
if (c < b)
then
{
Sleep 20;
c = c + 1;
}
else
{
null = execVM "Scripts\winner.sqf";
sleep 9000;
};
};
Alles anzeigen
Und davor natürlich erstellen mit einer andern .sqf
a = 0
b = 100
c = 0
aber how ever will nix hören dass das ein kack system ist.
Ich möchte jetzt den Score a und c in den Rsc Texten live angezeigt bekommen, hab aber nich rausbekommen wie ich das hinkreigen kann
Hier mein Score board:
C
class RscTitles {
class MyScoreboard
{
idd = -1;
movingenable = 0;
duration = 9000;
enableSimulation = 1;
class Controls
{
class KOTH_Frame: RscFrame
{
idc = 1800;
x = 0.396861 * safezoneW + safezoneX;
y = 0.00519861 * safezoneH + safezoneY;
w = 0.165022 * safezoneW;
h = 0.054978 * safezoneH;
colorBackground[] = {2,7,3,0.8};
};
class KOTH_Text_Blufor: RscText
{
idc = 1000;
text = "Blufor"; //--- ToDo: Localize;
x = 0.402018 * safezoneW + safezoneX;
y = 0.00519841 * safezoneH + safezoneY;
w = 0.0464123 * safezoneW;
h = 0.054978 * safezoneH;
colorText[] = {0,0,255,1};
font = GUI_FONT_BOLD; //font type
sizeEx = 0.065; //font size
};
class KOTH_Text_Opfor: RscText
{
idc = 1001;
text = "Opfor"; //--- ToDo: Localize;
x = 0.515471 * safezoneW + safezoneX;
y = 0.00519841 * safezoneH + safezoneY;
w = 0.0464123 * safezoneW;
h = 0.054978 * safezoneH;
colorText[] = {255,0,0,1};
font = GUI_FONT_BOLD; //font type
sizeEx = 0.065; //font size
};
class KOTH_Text_Blufor_Score: RscText
{
idc = 1002;
x = 0.463902 * safezoneW + safezoneX;
y = 0.00519841 * safezoneH + safezoneY;
w = 0.0464123 * safezoneW;
h = 0.054978 * safezoneH;
colorText[] = {5,8,3,1};
font = GUI_FONT_BOLD; //font type
};
class KOTH_Text_Opfor_Score: RscText
{
idc = 1003;
x = 0.489686 * safezoneW + safezoneX;
y = 0.00519841 * safezoneH + safezoneY;
w = 0.0464123 * safezoneW;
h = 0.054978 * safezoneH;
colorText[] = {5,8,3,1};
font = GUI_FONT_BOLD; //font type
};
class Text_Colon: RscText
{
idc = 1004;
text = ":"; //--- ToDo: Localize;
x = 0.479372 * safezoneW + safezoneX;
y = 0.00519841 * safezoneH + safezoneY;
w = 0.0464123 * safezoneW;
h = 0.054978 * safezoneH;
colorText[] = {5,8,3,1};
font = GUI_FONT_BOLD; //font type
};
};
};
};
Alles anzeigen
Hoffe jemand kann mir hier helfen.
LG & Danke!