-
Content Count
69 -
Joined
-
Last visited
-
Medals
Everything posted by Pasi
-
Hello BI Forum :) i dont find anny help in Google or somthing :/ i want to know how i add new Items in the Game. i want to add a Script when i rightclick on the Item in the Inventory can anyone help or give me a Link to help ? thank you guys :) Pasi
-
Hello guysy i have a new Problem :/ so i have a Array like this: _jobs = [ ["BLABLATEXT1","BLABLATEXT1","BLABLATEXT1","BLABLATEXT1",'//SCRIPT'], ["BLABLATEXT2","BLABLATEXT2","BLABLATEXT2","BLABLATEXT2",'//SCRIPT'] ]; an now i want to select one of them randomly like this: randomselect = selectRandom _jobs; but allways it sayd that randomselect is not defined :/ anyone a idea ? pls help me :D Pasi
-
Nothing :/ i dont see a Hint. in the Debug console over Watch when i typing randomselect i see this: []
-
It dont work :/ the Variables are defined in a Switch do case but that ist not the Problem or ? :/ _class = 1; switch (_class) do { case 1: { _jobs = [ ["BLABLATEXT1","BLABLATEXT1","BLABLATEXT1","BLABLATEXT1",'//SCRIPT'], ["BLABLATEXT2","BLABLATEXT2","BLABLATEXT2","BLABLATEXT2",'//SCRIPT'] ]; randomselect = selectRandom _jobs; }; case 2: { _jobs = [ ["BLABLATEXT3","BLABLATEXT3","BLABLATEXT3","BLABLATEXT3",'//SCRIPT'], ["BLABLATEXT4","BLABLATEXT4","BLABLATEXT4","BLABLATEXT4",'//SCRIPT'] ]; randomselect = selectRandom _jobs; }; };
-
Hello Guys, at the moment i work on a script to kill yourself when you are uncunconscious with ACE but now i have a problem. i need to know how i can check if the player is uncunconscious. does anyone know the if statement for this ? i dont find anything on the Internet. Greetings form Germany :)
-
ACE check if player is uncunconscious
Pasi replied to Pasi's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
thanks jshock @sammael i create a Dialog while im uncunconscious with a Button to kill myself :) -
Hello guys, do anyone knows how i can add the arma-nradio script ? I have no idea how i can install it :/ here is the Link: https://github.com/maca134/arma-nradio i hope anyone can help me :)
-
yes i have no idea :D
-
yes :)
-
Hello Arma Community, i want to Hold the BIS_fnc_typeText when the text creation is done. I dont finde any Help in the Web :/ anyone an idea ? thank you Pasi :)
-
up
-
WOW :D Nice thank you now it Works Top Support :) thank you Iarrow and tryteyker :)
-
Hello Community, I want to change a custom text for klick on a button in a Listbox. at the moment i have this code but i dont see the text in the Structurdetextbox { private _index = _list lbAdd (_x select 0); _list lbSetData [_index, str _index]; _list setVariable [str _index, _x select 3]; ctrlSetText [7773, Format ["%1", _x select 2]]; ctrlSetText [7774, Format ["%1", _x select 1]]; } forEach [_one, _two, _three]; every time when i select another point in the Listbox i want to change the text. can anyone help me ? Pasi
-
Now it says that a "[" is missed ?? I think he cant read the code out of the String ?
-
Up
-
Ok thank you i think i have now a little more Idea about that but now i have another problem... I have the hpp modified like your example. this is my dialog_init. disableSerialization; waitUntil {!isNull findDisplay 12345}; _display = findDisplay 12345; _list = _display displayCtrl 7771; _ctrlOK = _display displayCtrl 7772; lbClear _list; private ["_job1", "_job2", "_job3"]; _One= ["One","First Text","Second Text", {hint "First Text";}]; _Two = ["Two","First Text2","Second Text2", {hint "Second Text";}]; _Three = ["Three","First Text3","Second Text3", {hint "Third Text";}]; { private _index = _list lbAdd (_x select 0); _list lbSetData [_index, str _index]; _list setVariable [str _index, _x select 3]; } forEach [One, Two, Three]; also i have created a new file like your fnc_changeText. Here is my code but i dont undestand where i can take the variables. I want to set the Custom Text from that 3 variables in my dialog_init but i dont now how i can call them :/ changeText.sqf disableSerialization; waitUntil {!isNull findDisplay 12345}; _Jobdata = _this select 1; _Jobtext = _this select 2; ctrlSetStructuredText [7773, formatText ["%1", [_Jobtext]]]; ctrlSetStructuredText [7774, formatText ["%1", [_Jobdata]]];
-
pls help me noone any idea ? Up
-
Yes, that is it would i like to do :) Here is a picture and the Code from my dialog. Code: class controlsBackground { class MainBackground: life_RscText { idc = 1600; x = 0.29375 * safezoneW + safezoneX; y = 0.313 * safezoneH + safezoneY; w = 0.4125 * safezoneW; h = 0.418 * safezoneH; colorBackground[] = {0,0,0,0.7}; }; }; class controls { class RscListbox_1500: Life_RscListbox { idc = 7771; x = 0.304062 * safezoneW + safezoneX; y = 0.335 * safezoneH + safezoneY; w = 0.211406 * safezoneW; h = 0.341 * safezoneH; }; class RscButton_1601: life_RscButtonMenu { idc = 7772; text = "START"; colorBackground[] = {0,0,0,0.7}; colorText[] = {0,0,1,1}; x = 0.613437 * safezoneW + safezoneX; y = 0.335 * safezoneH + safezoneY; w = 0.0825 * safezoneW; h = 0.066 * safezoneH; }; class Descriptiontext: Life_RscStructuredText { idc = 7773; text = ""; colorBackground[] = {0,0,0,0.7}; colorText[] = {1,0,0,1}; x = 0.530937 * safezoneW + safezoneX; y = 0.489 * safezoneH + safezoneY; w = 0.165 * safezoneW; h = 0.187 * safezoneH; }; class Data: Life_RscStructuredText { idc = 7774; text = ""; colorBackground[] = {0,0,0,0.7}; colorText[] = {1,0,0,1}; x = 0.530937 * safezoneW + safezoneX; y = 0.423 * safezoneH + safezoneY; w = 0.165 * safezoneW; h = 0.044 * safezoneH; }; }; }; I dont have any Idea how i can do this :/ can you give me an example ?
-
Hello guys. I have create a Dialog with an RscCombo. Now i want to fill this list with an Switch case while but i dont know how. also i want to update the Dialog every Time a player klick on a Combobutton. Pls help me :D
-
Hello Arma Community, I want to count every Player with the same Variable sedat. and then i want to show it in a Dialog like the Display from King Of the Hill or other gamemodes with Grouplists on the Display. Now my Problem: I dont know how i can add every Playername to a List or an Array. the Variable names "imdienst" and is a Public Variable. can anyone help me ? Pasi
-
Count every Player with staid Variable
Pasi replied to Pasi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok thank you :) -
Count every Player with staid Variable
Pasi replied to Pasi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ahhh now it works thank you all Guys <3 but i have one question now :D i dont understand the parameters from the setVariable now. What sayd the first true and what the secound ? this is very brainfuck for me :D and i want to understand it :) -
Count every Player with staid Variable
Pasi replied to Pasi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
it dosnt Work :( here are all my files : this variable is set when a player start a script named einloggen player setVariable ["imDienst",true]; then i have another script with that _playerArray = allPlayers select {_x getVariable ["imDienst",false]}; hint format ["%1 players have the variable 'imDienst'.",(count _playerArray)]; _y = 0.302; { _OnlineStatusInfo = (findDisplay 602) ctrlCreate ["RscStructuredText",1933]; _OnlineStatusInfo ctrlSetPosition [0.180531 * safezoneW + safezoneX, _y * safezoneH + safezoneY,0.0876563 * safezoneW,0.055 * safezoneH]; _OnlineStatusInfo ctrlCommit 0; _OnlineStatusInfo ctrlSetBackgroundColor [0, 0, 0, 0]; _OnlineStatusInfo ctrlSetStructuredText parseText format["%1", (name _x)]; _y = _y + 0.02; } forEach _playerArray; and a delete script with that to leave player setVariable ["imDienst",false]; when i have start script 1 it set the variable to true when i open the Inventory i want to see all other players with this variable on true when i set the Variable on false then i want to delete me from the List. at the Moment i see all peoples on the server without me, -
Count every Player with staid Variable
Pasi replied to Pasi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Now i have this and i have the same Problem:/ _playerArray = []; _imDienst = player GetVariable "imDienst"; { if (!isNil "_imDienst") then { _playerArray PushBack _x; }; } forEach allPlayers; hint format ["%1 players have the variable 'imDienst'.",(count _playerArray)]; _y = 0.302; { _OnlineStatusInfo = (findDisplay 602) ctrlCreate ["RscStructuredText",1933]; _OnlineStatusInfo ctrlSetPosition [0.180531 * safezoneW + safezoneX, _y * safezoneH + safezoneY,0.0876563 * safezoneW,0.055 * safezoneH]; _OnlineStatusInfo ctrlCommit 0; _OnlineStatusInfo ctrlSetBackgroundColor [0, 0, 0, 0]; _OnlineStatusInfo ctrlSetStructuredText parseText format["%1", (name _x)]; _y = _y + 0.02; } forEach _playerArray; The Problem ist the same :/ i see all players on the Server. -
Count every Player with staid Variable
Pasi replied to Pasi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_OnlineStatusInfo ctrlSetStructuredText parseText format["%1", (name _x]; sry i post the false script :/ this is right but when i join it shows all Players on the Server And no i want to get the Names from the Player who play the Unit but also when i yous the "name _x" method it shows all Players on the Server.