-
Content Count
176 -
Joined
-
Last visited
-
Medals
Everything posted by cybercoco
-
See this screenshot :
-
Why is there two bars in the loading screen in Arma 3 (one small and one long). Is one loading the world and the other the scenario files ? And why does they each have to fill twice ?
-
Display text with RscTitles
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok, trying Larrow's method... This is the code for the progress bar : with uiNamespace do { my_awesome_progressBar = findDisplay 46 ctrlCreate ["RscProgress", -1]; my_awesome_progressBar ctrlSetPosition [ 0.345, 0.3 ]; my_awesome_progressBar progressSetPosition 0; my_awesome_progressBar ctrlCommit 0; my_awesome_progressBar ctrlSetTextColor [0.4,0.804,0,1]; }; Do I do this ? with uiNamespace do { my_awesome_text = findDisplay 46 ctrlCreate ["RscTexts", -1]; my_awesome_text ctrlSetPosition [ 0.345, 0.3 ]; my_awesome_text ctrlCommit 0; my_awesome_text ctrlSetTextColor [0.4,0.804,0,1]; }; -
Add background video
cybercoco replied to _.Dardo._'s topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Did you try it and make it work ? -
Oh, yeah. This seems very advanced indeed...
-
Display text with RscTitles
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes I did. There was no use of hpp file of the description.ext file in Larrow's approach ... -
Display text with RscTitles
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Currently using this : text.sqf disableSerialization; 1 cutRsc ["Jagger","PLAIN"]; waitUntil {!isNull (uiNameSpace getVariable "Jagger")}; _display = uiNameSpace getVariable "Jagger"; _setText = _display displayCtrl 1001; _setText ctrlSetStructuredText (parseText format ["Wonno"]); // _setText ctrlSetBackgroundColor [0,1,1,0.5]; dialogs.hpp class RscTitles { class Default { idd = -1; fadein = 0; fadeout = 0; duration = 0; }; class Jagger { idd = 1000000; movingEnable = 0; enableSimulation = 1; enableDisplay = 1; duration = 99999; fadein = 0.1; fadeout = 2; name = "Jagger"; onLoad = "with uiNameSpace do { Jagger = _this select 0 }"; class controls { class structuredText { access = 0; type = 13; idc = 1001; style = 0x00; lineSpacing = 1; x = 0.103165 * safezoneW + safezoneX; y = 0.757996 * safezoneH + safezoneY; w = 0.778208 * safezoneW; h = 0.0660106 * safezoneH; size = 0.020; colorBackground[] = {0,0,0,0}; colorText[] = {1,1,1,1}; text = ""; font = "PuristaSemiBold"; class Attributes{ font = "PuristaSemiBold"; color = "#FFFFFF"; align = "CENTER"; valign = "top"; shadow = false; shadowColor = "#000000"; underline = false; size = "4"; }; }; }; }; }; Any simpler way ? -
Two condition in "setTriggerStatements"
cybercoco posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all ! I have a small problem, I would like to add a trigger and set two conditions for it's activation. _won is the name of the car. The first is "this", player is present in the area (cicle 3,3 around _won). The second is "!(player in _won)", player is not in the vehicle. I can't find a way to make it work... // _won is the name of the car _trg = createTrigger ["EmptyDetector", getPos _won, false]; _trg setTriggerArea[3,3,0,false]; _trg setTriggerActivation["WEST","PRESENT",true]; _trg setTriggerStatements[ "this && !(player in _won)", "hint 'yes yes yes'", "hint 'no civilian near wonno'" ]; -
Hi all, everyone has a member title assigned on this forum. Mine is Newcomer. Is it related to the number of posts/thread published ? And does anybody know what are the different titles ?
-
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Final code : // script for trigger _trg = createTrigger ["EmptyDetector", getPos _won, false]; _trg setTriggerArea [3, 3, 0, false]; _trg setTriggerActivation ["WEST","PRESENT",true]; _trg setVariable ["won", _won]; _trg setTriggerStatements [ "this && !(player in (thisTrigger getVariable 'won'))", "(thisTrigger getVariable 'won') addaction [ '<t color=""#FF0000"">Hello</t>', 'staz\staz.sqf','',5]", "removeallactions (thisTrigger getVariable 'won')" ]; -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
. -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This doesn't display the addAction, while approaching the car. -
Add background video
cybercoco replied to _.Dardo._'s topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I'm also interested in learning this. Anyone knows how ? -
Same thread https://forums.bistudio.com/topic/186798-add-background-video/
-
Flying Destroyer Script - America on a Boat
cybercoco replied to fl4shrewind's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
family1 = _unit addAction ["<t color='#9A2EFE'>- </t><t color='#FF0000'>M</t><t color='#FFFFFF'>u</t><t color='#0000FF'>r</t><t color='#FF0000'>i</t><t color='#FFFFFF'>c</t><t color='#0000FF'>a</t> <t color='#FF0000'>A</t><t color='#FFFFFF'>i</t><t color='#0000FF'>r</t><t color='#FF0000'>l</t><t color='#FFFFFF'>i</t><t color='#0000FF'>n</t><t color='#FF0000'>e</t><t color='#FFFFFF'>s</t>", "flyingDestroyerT1.sqf"]; In player's init, _unit is a local variable in global space...- 1 reply
-
- Admin Tool
- Script
-
(and 8 more)
Tagged with:
-
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Working ! :o I knew that "#FF0000" wouldn't work because it went red in the code editor. However I wasn't aware double " existed ! Thank you Heeeere's johnny!, lesson learned ! -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Strange thing, when I try this, it works : "(thisTrigger getVariable 'won') addaction [ '<t>Hello</t>', 'staz\staz.sqf','',5]", When I try this, it doesn't : "(thisTrigger getVariable 'won') addaction [ '<t color='#FF0000'>Hello</t>', 'staz\staz.sqf','',5]", -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
When I launch the script, it doesn't display the addaction (while stepping into the 3 meters zone). -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Larrow, is that an addaction with a condition ? Seems like a good idea... I didn't mention something in the first post, the deactivation is not : "hint 'no civilian near wonno'" but "removeallactions (thisTrigger getVariable 'won')" Basically each time the player gets in the vehicle or out of the 3 meters area, the addaction ealier added will be gone. -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I don't think the file linked makes any differences because it's not yet run. Ok, do I just write this ? "(thisTrigger getVariable 'won') addaction ['<t color='#0000FF'>Hello</t>', 'staz\staz.sqf','',5]", -
Two condition in "setTriggerStatements"
cybercoco replied to cybercoco's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Oh, I didn't pay attention, but it still doesn't work...