-
Content Count
741 -
Joined
-
Last visited
-
Medals
Community Reputation
254 ExcellentAbout Schatten
-
Rank
Master Sergeant
Profile Information
-
Gender
Male
-
Location
Tbilisi, Georgia
Recent Profile Visitors
-
execVM for all players
Schatten replied to Vadym Mazur's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No. If script.sqf is available for players, then "script.sqf" remoteExec ["execVM", allUnits select { isPlayer _x }]; -
execVM for all players
Schatten replied to Vadym Mazur's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The mistake is that createDiarySubject requires local argument, therefore you need to execute this command using remoteExec. -
ctrlScrollValues returns strange values
Schatten replied to Schatten's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No, I haven't. Why? I need to get correct scroll bar values (or understand what they mean) of items list of vest, this listbox doesn't have any slider. -
ctrlScrollValues returns strange values
Schatten posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone! According to the BIKI, ctrlScrollValues returns values in range 0..1. However, if I scroll down a list, the Y value is greater than 1 -- 11.5715: https://imgbox.com/yqtZo8sv Is this a bug? If not, what does this number mean? -
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))