-
Content Count
2494 -
Joined
-
Last visited
-
Medals
Everything posted by sarogahtyp
-
Again I guess you are on the wrong track. I also guess that I was on the right with my last post. But u just swiped it aside without thinking about it (guessing as well).
-
MMB is to select default action from action menu without opening it. It also opens doors or weapon arsenals depending on the situation or where u r pointing at. I guess you have to look in general controls for something like default action. But currently i ve no arma and are guessing...
-
AI Helis Takeoff at specific time
sarogahtyp replied to BikerJoe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
with the command date you are able to get the ingame time.- 1 reply
-
- 2
-
TELEPORT ACROSS BRIDGES
sarogahtyp replied to csepi0101's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@beno_83au's solution is simple and should work for ur purpose. Why not trying it? -
TELEPORT ACROSS BRIDGES
sarogahtyp replied to csepi0101's topic in ARMA 3 - MISSION EDITING & SCRIPTING
not tested but should do safe teleports if working generally: -
TELEPORT ACROSS BRIDGES
sarogahtyp replied to csepi0101's topic in ARMA 3 - MISSION EDITING & SCRIPTING
After reading OPs post a second time I guess he wants to have a trigger which teleports each unit and each vehicle which is in trigger area to the given position. -
Script in "initServer.sqf" Doesn't Execute in Dedicated Multiplayer Server
sarogahtyp replied to Deleted's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No this would execute the script on each machine which is exactly the opposite of what the first line (if (!isServer ...) does. You have to use remoteExec within your scipt on the 2 commands I mentioned. hint has to get executed on each client and not on server. use -2 as the target parameter on remoteExec for this. setHitPointDamage has to get executed where _helicopter is local. therefore u use _helicopter as target parameter of remoteExec -
Script in "initServer.sqf" Doesn't Execute in Dedicated Multiplayer Server
sarogahtyp replied to Deleted's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The script is running on your dedicated server but it does'nt work as intended because you did not pay attention to locality. Multiplayer scripting is very different to Singleplayer scripting because on each line of your script you have to ask on which machine that command has to be executed. Basically 2 commands of your script do not work as intended: 1. your hint command gets executed on server only and therefore its string will only get shown on server. 2. the command setHitPointDamage is executed on server as well but its arguments have to be local on the machine where this command gets executed to take any effect. But the argument _helicopter is local on the machine of the pilot player who is flying it. Therefore the whole command has to get executed on that machine. How to get those commands executed where they have to get executed? The command you need to learn is remoteExec How to know which command needs such "remote execution"? Every command on the top of its biki page has some icons like "AL" or "EL". Those icons show you if the effects of this command are local to the machine where it is executed like with the hint command or if the arguments of the command have to be local on the machine where it gets executed loke with the setHitPointDamage command. -
if you have equipped a rangefinder then you can use it with B key. Same as with binoculars. you can either equip binoculars OR rangefinder even if you can have both with you (maybe in a backpack)
-
loot extraction Loot extraction-reward system (Dark Zone inspired)
sarogahtyp replied to Dj Rolnik's topic in ARMA 3 - MISSION EDITING & SCRIPTING
private _mercTargets = [ loner_1, loner_2, loner_3, loner_4, loner_5, loner_6, loner_7, loner_8, loner_9, loner_10, loner_11, loner_12, duty_1, duty_2, duty_3, duty_4, bandit_1, bandit_2, bandit_3, bandit_4, sky_1, sky_2, sky_3 ]; private _randSel = []; // do 9 times for "_i" from 1 to 9 do { private [ "_temp", "_d" ]; // select one element randomly _temp = selectRandom _mercTargets; //find the selected element in array and delete it (there are many other ways doing this) _d = _mercTargets deleteAt ( _mercTargets findIf { _x isEqualTo _temp }; ); //push the selected element into an array _d = _randSel pushBack _temp; }; // now you have the array _randSel which contains 9 random elements out of _mercTargets not tested cause I ve no arma available this week -
Elite Warriors Evolution Red Server
sarogahtyp replied to Megazort's topic in ARMA 2 & OA - USER MISSIONS
Seems to be dead. -
Make Ai squad invincible
sarogahtyp replied to Phantom_Fuzz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@rainbow47 there was a reason for this: -
Isnt 2 changing to rifle already? Did you move that control elsewhere? Maybe hitting the "change to rifle key" a second time changes firemode. But Im on mobile. Cant test just guess.
-
Make Ai squad invincible
sarogahtyp replied to Phantom_Fuzz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
try to write the whole thing manually instead of using copy and paste -
Make Ai squad invincible
sarogahtyp replied to Phantom_Fuzz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Don't get toooooo specific... -
Make Ai squad invincible
sarogahtyp replied to Phantom_Fuzz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Init field: { if !( isPlayer _x ) then { _x allowDamage false; }; } forEach units group this; Or debug console: { if !( isPlayer _x ) then { _x allowDamage false; }; } forEach units group player; -
loot extraction Loot extraction-reward system (Dark Zone inspired)
sarogahtyp replied to Dj Rolnik's topic in ARMA 3 - MISSION EDITING & SCRIPTING
has to be { _sumScore = _sumScore + (_x select 2) } forEach _presentItems; -
please help me to solve the error when starting arma 3
sarogahtyp replied to Flocky_Pollo's topic in ARMA 3 - QUESTIONS & ANSWERS
use revo uninstaller to uninstall both versions of the game completly. Then delete all arma related folders in user/username/appdata/local and also all arma related folders in your documents folder. appdata is a hidden folder. You have to setup your file browser to show it. After deleting everything related to arma install the legit version again. Maybe it works this way. -
[Release] GOM - Ambient AA V1.2.1
sarogahtyp replied to Grumpy Old Man's topic in ARMA 3 - MISSION EDITING & SCRIPTING
usually the script fires at a random position somewhere in the air. you can't declare a target but you could pass an array of ASL positions to the script by using the 4th parameter. The script will select one of those positions randomly. I created a working example mission which shows that the script works flawlessly: https://www.dropbox.com/s/o7spbwtcl1dj0y8/tempMissionMP.VR.zip?dl=0 It does not use those predefined positions array. -
How to find a vehicle's mass / weight
sarogahtyp replied to scifer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Waldemar 337 I think @_foley's suggestion is a good idea. Normally I am more in favour of a dynamic solution, but if you have to spawn vehicles all the time, then I am also more in favour of hardcoding or a dynamic/hardcoding-hybrid: In your vehicle viewer mod you could hard code the data for the most common vehicle mods like CUP and RHS and of course for the vanilla vehicles. You could also use the ugly solution (using createVehicleLocal) for all vehicles that are not found in the hashmap. This way you have a fast, always working solution which mostly will not spawn vehicles for just viewing them with your mod. -
Change User Interface Colors without game restart
sarogahtyp replied to sammael's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Maybe you should just describe (maybe with a screenshot) what exactly you mean with "lock on diamonds". -
Change User Interface Colors without game restart
sarogahtyp replied to sammael's topic in ARMA 3 - MISSION EDITING & SCRIPTING
-
Change User Interface Colors without game restart
sarogahtyp replied to sammael's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You could try it with using showHUD in description.ext to set it for all players for the whole mission: https://community.bistudio.com/wiki/Description.ext#showHUD This should behave differently from the script command. If that is not helping and if you are talking about the visionAid difficulty setting (see here) then it's upto the server owner to set a fitting difficulty preset (see here forcedDifficulty and here ) and then you just can't change that with a script command or a mission setting. -
How to find a vehicle's mass / weight
sarogahtyp replied to scifer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
createSimpleObject does not work for getting the mass. This script will create the hashmap for all vehicles. it can be tested on debug console and will hint the number of vehicles and the runtime used for the script: private [ "_startTime", "_d", "_runtime", "_className" ]; sneakyPeakyGlobalMassHashmap = createHashMap; isNil { _startTime = diag_tickTime; { _className = configName _x; _d = _className createVehicleLocal [ 0, 0, 0 ]; sneakyPeakyGlobalMassHashmap set [ _className, ( getMass _d ) ]; deleteVehicle _d; } forEach ( "_classname = configName _x; getNumber (_x >> 'scope') isEqualTo 2 && (_classname isKindOf 'Helicopter' || _classname isKindOf 'Plane' || _className isKindOf 'Car' || _className isKindOf 'Motorcycle' || _className isKindOf 'Tank' || _className isKindOf 'Ship_F') " configClasses (configFile >> "CfgVehicles") ); _runtime = diag_tickTime - _startTime; }; hint format [ "Count: %1 - Time: %2", (count sneakyPeakyGlobalMassHashmap), _runtime]; If u really want to get the mass within the mission then I recommend to use createVehicleLocal to "hide" the spawned vehicle from other connected players. You will also have no vehicle collisions this way. -
Change User Interface Colors without game restart
sarogahtyp replied to sammael's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Maybe this: https://community.bistudio.com/wiki/showHUD