Jump to content
  • Topics

  • Posts

    • {_x .... } forEach allUnits; is OK at start, on server only (no need to re-run that at each JIP) Note: For MP scenario, you must check if your sqf are ok for all commands with global effect GE . Multiplayer needs more attention for many things. See multiplayer threads. and https://community.bistudio.com/wiki/Multiplayer_Scripting   Once in MEH "entityCreated", just use _entity for all you want to do. As there are plenty of different entities (objects like rabbits, projectiles,...), you need to filter. For example: if (faction _entity isEqualTo "BLU_F" && {_entity isKindOf "CAManBase"}) then { [_entity] execVM "scripts\loadouts\BLUFOR\NATO.sqf"}; Here, you check for faction, which is a strong filter, then (lazy evaluation) you filter only unit ("CAManBase", because rabbits & snakes are "man") and you skip the vehicles of the faction. Note: execVMing an sqf is not the best way for performance saving, because you're recompiling the same code again and again. Create a function instead and call or spawn it. (there threads about that and BIKI is your friend). https://community.bistudio.com/wiki/Script_File https://community.bistudio.com/wiki/Function https://community.bistudio.com/wiki/Description.ext especially : https://community.bistudio.com/wiki/Arma_3:_Functions_Library    
    • When I was writing my script, I wanted to create my own script for closing and opening the technique. I am new to writing scripts and therefore used various sources from the Internet. I managed to create such a script, but its correctness leaves much to be desired. Below I have given what I got. But this is not exactly what I wanted, at first I can't make it so that the close button is displayed again during the open close iteration. Help me figure this out, point out what I should pay attention to.  
      /* 0 = [] execVM "addAction.sqf"; */
      respMash addAction ["<t color='#00FF00'>Expand the KSHM</t>", 

          myResp = [west, "respMash"] call BIS_fnc_addRespawnPosition;//Creates a respawn point in the technique     
          player addEventHandler ["GetInMan",//Creating a GetInMan event - if a person is inside
                  {
                  ["respMash","player"];//GetInMan parameters = true
                  player moveOut respMash;//Action when true. Will land the player     
                  }];
          
          respMash setVehicleLock "LOCKED";//Completely blocks the technique
          hint parseText "<t size='2.0'>KSHM IS DEPLOYED</t>";//Outputs a hint
          respMash removeAction 0;//deletes the line of the action Expand KShM
              respMash addAction ["<t color='#FF0000'>Collapse the KSHM</t>",//addAction Parameters Collapse KSHM 
              {
              myResp = [west, 0] call BIS_fnc_removeRespawnPosition;//Removing the respawn point in the technique
              respMash setVehicleLock "UNLOCKED";//We will completely unlock the equipment 
              player removeAllEventHandlers "GetInMan";
              hint parseText "<t size='2.0'>KSHM IS COLLAPSED</t>";//Outputs a hint
              respMash removeAction 1;
              },
              nil, 1.5, true, true, "", "", 5];//addAction Parameters Collapse KSHM
                  
              
          player moveOut respMash;//It will land the player if he teleports to respMash = car
          
      },
      nil, 1.5, true, true, "", "", 5];//addAction Parameters Expand KSM
      respMash addEventHandler ["Killed",//The event in which the equipment is destroyed
      {
          myResp = [west, 0] call BIS_fnc_removeRespawnPosition;
          respMash removeAction 0;
          respMash removeAction 1;    
      }];
    • So ive been looking around for decent server hosting/ rental services for a reforger private server for myself and my friends I’ve found a lot of interesting options but nothing solid at this moment we need something that’s cross platform friendly so that friends on Xbox can actually join and play I’ve specifically been looking at this company called Streamline servers And they have reforger servers available but say nothing about crossplay, does anyone have any experience with streamline or any other services they can recommend? Anything helps
    • anyone know how to fix this? I did a fresh reinstall and it was working fine but now it has the error/crashing again.
×