-
Content Count
737 -
Joined
-
Last visited
-
Medals
-
How to disable the respawn button in Arma game main menu
Schatten replied to avibird 1's topic in ARMA 3 - MISSION EDITING & SCRIPTING
description.ext: onPauseScript = "onPause.sqf"; onPause.sqf: params ["_display"]; (_display displayCtrl 1010) ctrlEnable false; -
End scenario when only 30% of enemy left in trigger.
Schatten replied to janchezs's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Correct. Set that the trigger is activated by BLUFOR. -
End scenario when only 30% of enemy left in trigger.
Schatten replied to janchezs's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@janchezs, try this condition (assuming the units are already inside the trigger): _unitsCount = count thisList; _unitsCountMin = thisTrigger getVariable ["unitsCountMin", -1]; if (_unitsCountMin < 0) then { _unitsCountMin = ceil (0.3 * _unitsCount); thisTrigger setVariable ["unitsCountMin", _unitsCountMin]; }; _unitsCount <= _unitsCountMin -
optimization [SOLVED] 5 lines only. Can you do it with less?
Schatten replied to thy_'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
By the way, find is case-sensitive, so if you need case-insensitive, you can use, for example, toLowerANSI: ((toLowerANSI _x) find "mark_") == 0 -
optimization [SOLVED] 5 lines only. Can you do it with less?
Schatten replied to thy_'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Aware of this, but in our cases isEqualTo is used to compare numbers, and in this context I prefer to use == because it's shorter. -
optimization [SOLVED] 5 lines only. Can you do it with less?
Schatten replied to thy_'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Another one with lazy evaluation: _markersToReview = allMapMarkers select { ((_x find "mark_") == 0) and { (markerShape _x) in ["ELLIPSE", "RECTANGLE"] } }; -
Detect Nav custom info panel sub-mode
Schatten posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey! Is there a way to detect which sub-mode of Nav custom info panel is used? There were such questions (https://forums.bohemia.net/forums/topic/200468-jets-custom-panels-gps-camera-feeds/?page=6&tab=comments#comment-3195212, https://forums.bohemia.net/forums/topic/200468-jets-custom-panels-gps-camera-feeds/?page=8&tab=comments#comment-3286577), but they remained unanswered. Maybe someone knows the answer? Or maybe someone knows where is the script used to draw Nav custom info panel icons? Thanks in advance. -
@mrcurry, sure: https://cdn.discordapp.com/attachments/1056241369787674774/1064619349933043772/2023-01-16_215709359.png.
-
Hey! Is there a way to change friendly tags shown when you point mouse cursor to friendly units, say by changing control text got by IDC? Of course, I can disable showing these tags in difficulty options menu and implement my own solution using, for example, drawIcon3D. Is there a better way to implement the same functionality? This is the second option. I would prefer to change the one the game offers. Thanks in advance.
-
How can I remove weopons from Players when they leave an area
Schatten replied to Ganvai84's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Ganvai84, insert a trigger, make it repeatable, change activation condition to !(player inArea thisTrigger) and on act. code to removeAllWeapons player; -
Trigger when npc is in any vehicle
Schatten replied to Sexy E-Boy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes: !(isNull (objectParent npc1)) -
_boat1 is not object (the boat), but array, see BIKI.
-
quick question on how to id terrain object
Schatten replied to twistking's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@twistking, use select command. -
Problem with getVariable
Schatten replied to Vadym Mazur's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Maybe, it depends on what you want. -
Problem with getVariable
Schatten replied to Vadym Mazur's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You can use either database or profile namespace (profileNamespace, missionProfileNamespace).