bertram
Member- 
				
Content Count
44 - 
				
Joined
 - 
				
Last visited
 - 
  
Medals
 - 
    
Medals
 - 
            
 
Everything posted by bertram
- 
	
	
				Select certain percentage of players randomly
bertram posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm creating a Team vs Team mission where the sides are completely random aside from three players that selected the only Blufor, Opfor, and Independent role respectfully. Every other player will slot a civilian role and then from that pool it will be split evenly 3 ways and the players for each side will be teleported to their leader, assigned to that side and given gear based on their faction. I'm able to accomplish everything except splitting the players evenly three ways. I tried adding all players on the civilian side to an array and then randomly selecting from that and teleporting them however this doesn't ensure even distribution as each instance is random. Is there any MP reliable way to accomplish this? To state it simply, I just want to be able to select a third of players on the civilian side and be able to affect that third with another script and then do the same with the remaining 2/3rds. - 
	
	
				Select certain percentage of players randomly
bertram replied to bertram's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I was trying to work this out myself and your post basically fulfilled everything I needed and a bit more. In particular giving members of each team gear. I may make changes as I go but at the moment I only made one minor change to line 53. _player setUnitLoadout (getUnitLoadout _leader); This way team members will have the same gear as the leader. - 
	
	
				Select certain percentage of players randomly
bertram replied to bertram's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The mission is not persistent it will just have a pool of players at the start that need to be balanced, but to re-iterate, I want the players to be divided three ways randomly. So every player will only be able to slot on the civilian side and once the mission starts the script will randomly assign them their team. I'll look through this thread you linked and see if I can work out my goal when I have some time, but just glancing at it it seems like the OP here wanted a balance on the fly in which the players select their team themselves. - 
	
	
				removeAllWeapons not working in script
bertram posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have a "onPlayerRespawn.sqf" running in my mission, however every command works just fine except removeAllWeapons. player addEventHandler ["Respawn", { removeAllWeapons (_this select 0); removeAllAssignedItems (_this select 0); removebackpack (_this select 0); removeVest (_this select 0); removeUniform (_this select 0); removeHeadGear (_this select 0); removeGoggles (_this select 0); (_this select 0) setVariable ["HG_myCash",600]; }]; If I just use the removeAllWeapons command it will work once then fail on every subsequent respawn where each other command works 100% of the time. - 
	
	
				Switch case that checks what weapon a player has
bertram posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to create a script that removes a player's weapon but with a switch case for different weapons. if (!(weapons player isEqualTo [])) then { switch (currentWeapon player) do { { case "arifle_Mk20_plain_F": hint "F2000 Removed"; player removeWeapon (primaryWeapon player); }; { case "SMG_05_F": hint "Mp5k removed"; player removeWeapon (primaryWeapon player); }; } else {hint "No weapon equipped"} }; The script checks if the player has a weapon and if they do goes by the classname of the weapon for each case. However, I'm doing something wrong here as the player's weapon never gets removed nor does the hint for no weapon go off. A previous attempt at making this fired the first case every time except for when the player had no weapon which fired the appropriate hint. From this I can say I'm pretty certain my if statement is fine and I'm just not doing the switch case correctly. - 
	
	
				removeAllWeapons not working in script
bertram replied to bertram's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I get the same results if I choose one or the other. Edit: I made a work around for just removing weapons from the player when the enter a trigger which works for what I'm doing. - 
	
	
				ACE3 - A collaborative merger between AGM, CSE, and ACE
bertram replied to acemod's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Since the latest update spectator are now dying in my missions with their bodies being deleted upon death. I've configured ACE Spectator and ACE Respawn in the new addon menus and they seem to be working as before with the exception of spectators drowning in the corner of the map. I use respawn at base so players can JIP back in easily however it seems players are being hidden but places in the corner of the terrain (I'm not sure if that always happened in ACE Spectator but nonetheless they drown in the latest update and not previous versions). - 
	Hey I'm having a problem with setting up a headless client on a server and I'm not really sure how to approach it. The mission is has the HC game logic and is using the ACEX headless client module. The role selection screen lists the headless client slot under Virtual and can not be slotted by actual players. Both the server the HC is attempting to connect to and the HC itself are dedicated servers. In the server.cfg of the server: headlessClients[] = {"142.54.169.114"}; localClients[] = {"142.54.169.114"}; battleyeLicense = 1; I also tried excluding localClients as many of the guides I looked at implied it doesn't need to be used if the HC is on a different network. Command line of the HC: -noSplash ARMAHOSTS -noPause -noSound -maxMem=2047 "-profiles=ARMAHOSTS" -client -connect=160.202.178.22 -port=2332 -password=hello "-mod=@CBA_A3;@ace;@ACEX;" Since its a dedicated server using a control panel the executable for the server itself is already targeted. I don't see an indication in the server logs or the HC logs that there was any attempt by the HC to connect. The logs for both servers are essentially identical except the server shows it has successfully initialized as a Steam server. Because I don't really have any errors to go on I'm not sure if the server is rejecting the HC or the HC is just not properly initializing in the first place to even make a connection.
 - 
	I'm making a custom unit config for my group so that we can use them in DAC however I'm having an issue with the side of the unit in the config. My custom config.cpp. I'm just have one unit in there for now as I wan't to make sure I can get one working before I commit to making many more units. enum { // = 2, DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class JFV_Vietnam_Unit_Mod { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F_Common", "A3_Characters_F", "A3_Characters_F_Beta", "A3_Characters_F_BLUFOR"}; }; }; class cfgFactionClasses { class JFV_Viet_Units //Faction Calling Name, this line will be used to define your faction for units { displayName = "JFV Vietnam Units"; //Faction name in-game priority = 2; //How far down it is on the menu side = 0; // 2 Blufor 0 opfor 1 independant I think. }; }; class CfgVehicleClasses { class JFV_Viet_Units //Name of unit group e.g Air, Infantry, Armour (You see this name in the ingame dropdown menu) { displayName = "NVA Infantry"; //In-game name }; }; class CfgVehicles { class B_Soldier_base_F; class JFV_soldier_F; class JFV_soldier_F : B_Soldier_base_F { //You may use anything you want, just make sure it's unique _generalMacro = "B_Soldier_F"; //Don't change this line! scope = 2; //This means whether you'll be able to see the unit in the dropdown menu or not side = 0; //0 Means Opfor faction = "JFV_Vietnam_Units"; //Your Faction vehicleclass = "JFV_Infantry"; //Unit Group displayName = "NVA Rifleman (AKM)"; nakedUniform = "U_BasicBody"; uniformClass = "MNP_CombatUniform_NKR_Sh"; genericnames = "AsianMen"; //Right now your soldiers will have African names, you can get rid of this line identitytypes[] = {"Head_Asian"}; //Right now your soldiers will look African, you can get rid of this line //backpack = "B_Parachute"; //You can use this line to add a backpack to your unit (delete "//" those first) linkedItems[] = {"CUP_V_O_SLA_Carrier_Belt02", "H_LIB_DAK_PithHelmet", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; //Helmets, vests and small items go here respawnLinkedItems[] = {"CUP_V_O_SLA_Carrier_Belt02", "H_LIB_DAK_PithHelmet", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; Weapons[] = {"rhs_weap_akm","Throw","Put"}; // only add rifle & / pistol classname, leave throw and put they are used for explosives and grenades respawnWeapons[] = {"rhs_weap_akm","Throw","Put"}; Magazines[] = {"rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","HandGrenade","SmokeShell"}; //Ammo goes here respawnMagazines[] = {"rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","rhs_30Rnd_762x39mm","HandGrenade","SmokeShell"}; }; }; I used this post as a guide, however I looked at unit configs for existing mods and other examples and can't find a discrepancy that would cause my config to have no entry for the unit's side.
 - 
	
	
				No Entry .side Unit Config Error
bertram replied to bertram's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Thanks swtx, your example seemed to be much more complete than a lot of the examples I was looking at. There's a lot of unnecessary stuff in my config, for example the unit classname doesn't need to be declared twice and the game may have been looking for a side value in that initial classname. - 
	In my missions I often put in assistant slots that carry ammo and such for a different weapon than the unit is carrying. I've been making the change to using the arsenal via eden for gear instead of an external gear script but in the arsenal I can only add ammo for weapons the unit is using. Is there anyway to unrestrict the ammo you can give to a unit in the virtual arsenal?
 - 
	I've been trying to ween myself off the 2d editor but one thing I really can't get past is how long it takes to preview in the 3d editor vs the 2d. In a blank mission in vanilla Arma 3, with just a player it can take 5-10 seconds to preview in the 2d editor. However in the 3d editor it can take a solid 2 minutes. Is anyone else having this issue with the 3d editor taking a ridiculously long time to preview? This time only increases once I start putting more into a mission.
 - 
	
	
				Extremely long preview times in the 3d editor
bertram replied to bertram's topic in ARMA 3 - EDEN EDITOR
Running no mods, running latest stable version of the game as of today. Just to re-iterate most of the other mission makers in my group are having this issue. - 
	
	
				Custom faces for other players and all squad XMLs not showing up
bertram posted a topic in ARMA 3 - TROUBLESHOOTING
I recently moved my Arma 3 files over to my SSD, as well as having my launch parameters point to my SSD as my new profile location. Every thing is working fine however in multiplayer I can't see the custom faces of players that I know work fine because other players can see them. I also can't see any squad XML images. My new Arma 3 location in my SSD however has the the images of the XMLs and players in the "squads" and "players" folders. Has anyone that moved their Arma profile to an SSD experienced this and found a fix? - 
	
	
				Script not found error pointing to nothing
bertram posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have a completely working mission but I get an annoying script not found error every time it starts. However, instead of indicating a missing script it only says "Script not found". I looked through my rpt and "Warning Message: Script not found" occurs 7 times. To reiterate the mission works flawlessly and all script errors in my mission are non-critical. The message is fairly annoying though and I would like to try and try correcting the error causing it. Full .rpt logs - 
	I was running some tests with some guys in my group and we could not turn off babel via the ACRE module. Regardless of being set to "No Babel", "Per Side", or "Per Side/Common" blufor and opfor were using different languages. The only way to disable babel was to remove the ACRE module.
 - 
	I've been trying to make a mission similar to the game "The Ship" which is a game where each player is assigned a target, or quarry, that they must eliminate within a certain time limit. However I'm not entirely sure how to go about creating a script where each player is assigned another player at random as a target. I tried creating an array of all the playable units _randomtarget = playableUnits; and then using _target = _randomtarget call BIS_fnc_selectRandom; to chose a random value in that array, however I'm believe I'm going about this the wrong way as I'm getting 'any' as my return value. If anyone could provide some insight that would be much appreciated.
 - 
	I'm using a soundboard and VAD so I'll give it a shot. Edit: Deleted soundboard, kept VAD on and no crashes. My group also played a mission with about 20 people and didn't experience any framerate issues with the new version.
 - 
	Myself and my group have been using ACRE2 since release and some of us have had a very annoying issue with it since then. After a few minutes of use in-game broadcasting causes Arma 3 to freeze and then crash. I've messed with it for a few weeks trying to pinpoint some other symptoms and fixes and found out that if I quickly alt-tab out of Arma and restart TS I will not crash. I've also noticed that it only happens if I'm using multiple radios. In a mission where I was constantly switching between a 343 and 148 I had this happen five times within maybe 10 minutes, while in a mission where I just had a 343 I did not freeze/crash at all.
 - 
	I've been working with trying to get team colors assigned via unit init or script in a mission, so when the mission begins on the server all players are already in their respective teams. I already know this assignTeam "COLOR" will not work in multiplayer, so that's out of the question. Currently I'm assigning team colors automatically through a really annoying trigger, while it works, I'd much rather have it be done in an easier way. Every unit is named, which can get tedious and leaves a lot of room for mistakes in large missions, and the trigger's onAct uses assignTeam "COLOR" but for every unit. Is there any way I could assign team colors, conditionally, through an MP compatible script?
 - 
	
	
				RHS Escalation (AFRF and USAF)
bertram replied to soul_assassin's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Can anyone else confirm that RHS:Escalation and All in Arma Terrain Pack are incompatible on a dedicated server? My group's server only comes online when one or the other is taken out of the command line. Also tried with just RHS and AiATP in the command line and it doesn't seem to be working, however they work fine in singleplayer. EDIT: Got it working by putting RHS: Escalation in front of AiA in the command line.- 16574 replies
 - 
	
		
- Weapons
 - Accessories
 - 
					(and 1 more) 
					
Tagged with:
 
 
 - 
	
	
				Need Some Help With a Multiplayer Gearscript
bertram replied to bertram's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Your post really helped TKTom, I have it working nearly exactly how I want it. I can deal with this but the only thing is that anyone that has died, aborts, and re-joins in a role without leaving the server they don't get their gear. I can have people leave fully before re-spawning that way but it works well otherwise. Also I'm not having a backpack issue. - 
	
	
				Need Some Help With a Multiplayer Gearscript
bertram posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've been working on a multiplayer gearscript and I'm having a few problems. First off, everyone spawns with the correct gear in their uniform and vest. The problem I'm having is that people spawn with no gear in their backpack, and for some reason people lose their magazines when someone joins the server. I understand there is a global version of addmagazine, addweapon, etc but I'm not sure if I need to use those as my script should be executed globally. I should note that this script works in Arma 2 without issues. (Also as a non-essential issue, I have no idea how to add multiple items in one command the same way you can add magazines for instance.) gear.sqf // ==================================================================================== // // Defined loadouts: // SL - Platoon/Squad Leader // FL - Fireteam Leader // MD - Medic // AR - Auto. Rifleman // AAR - Assistant Auto. Rifleman // LAT - Rifleman (AT) // RIF - Rifleman // MG - Machinegunner // AMG - Assistant Machinegunner // CREW - Vehicle Crewman // PIL - Pilot // // ==================================================================================== private ["_type", "_unit"]; _type = _this select 0; _unit = _this select 1; removeallweapons _unit; removeAllAssignedItems _unit; removebackpack _unit; removeVest _unit; removeUniform _unit; removeHeadGear _unit; removeGoggles _unit; //Defines basic gear for all units, MUST GO LAST IN CASE #define BASIC \ _unit linkItem "ItemMap"; \ _unit linkItem "ItemWatch"; \ _unit linkItem "ItemCompass"; \ _unit linkItem "ACRE_PRC343"; \ _unit additem "AGM_Earbuds";\ _unit additem "AGM_Epipen";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage";\ _unit additem "AGM_Bandage"; //Defines Uniform for all units #define UNIFORM \ _unit adduniform "U_mas_mar_B_IndUniform1_v"; \ _unit addvest "V_mas_mar_PlateCarrier2_rgr_d"; \ _unit addheadgear "H_mas_mar_HelmetBind_v"; switch (_type) do { case "SL": { UNIFORM; _unit addweapon "arifle_mas_m16_gl"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",14]; _unit addmagazines ["30Rnd_mas_556x45_T_Stanag",4]; (unitBackpack _unit) addmagazineCargo ["1Rnd_HE_Grenade_shell",10]; (unitBackpack _unit) addmagazineCargo ["1Rnd_Smoke_Grenade_shell",3]; (unitBackpack _unit) addmagazineCargo ["1Rnd_SmokeGreen_Grenade_shell",2]; (unitBackpack _unit) addmagazineCargo ["1Rnd_SmokeRed_Grenade_shell",2]; _unit addmagazines ["15Rnd_mas_9x21_Mag",3]; _unit addweapon "hgun_mas_m9_F"; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; _unit addWeapon "Rangefinder"; _unit linkItem "ItemGPS"; _unit additem "ACRE_PRC148"; BASIC; }; case "FL": { UNIFORM; _unit addweapon "arifle_mas_m16_gl"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",14]; _unit addmagazines ["30Rnd_mas_556x45_T_Stanag",4]; (unitBackpack _unit) addmagazineCargo ["1Rnd_HE_Grenade_shell",10]; (unitBackpack _unit) addmagazineCargo ["1Rnd_Smoke_Grenade_shell",3]; (unitBackpack _unit) addmagazineCargo ["1Rnd_SmokeGreen_Grenade_shell",2]; (unitBackpack _unit) addmagazineCargo ["1Rnd_SmokeRed_Grenade_shell",2]; _unit addmagazines ["15Rnd_mas_9x21_Mag",3]; _unit addweapon "hgun_mas_m9_F"; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; _unit addWeapon "Rangefinder"; _unit linkItem "ItemGPS"; BASIC; }; case "MD": { UNIFORM; _unit addweapon "arifle_mas_m16"; _unit addbackpack "B_TacticalPack_mcamo"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",10]; (unitBackpack _unit) additemCargo ["AGM_Bandage",30]; (unitBackpack _unit) additemCargo ["AGM_Epipen",7]; (unitBackpack _unit) additemCargo ["AGM_Morphine",12]; (unitBackpack _unit) additemCargo ["AGM_Bloodbag",4]; _unit addmagazines ["SmokeShell",7]; _unit addmagazines ["SmokeShellGreen",2]; _unit linkItem "ItemGPS"; BASIC; }; case "AR": { UNIFORM; _unit addweapon "LMG_mas_M249a_F"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["200Rnd_mas_556x45_T_Stanag",5]; _unit addmagazines ["15Rnd_mas_9x21_Mag",3]; _unit addweapon "hgun_mas_m9_F"; _unit additem "AGM_SpareBarrel"; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "AAR": { UNIFORM; _unit addweapon "arifle_mas_m16"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",12]; (unitBackpack _unit) addmagazineCargo ["200Rnd_mas_556x45_T_Stanag",2]; (unitBackpack _unit) addmagazineCargo ["30Rnd_mas_556x45_Stanag",6]; _unit addmagazines ["15Rnd_mas_9x21_Mag",3]; _unit addweapon "hgun_mas_m9_F"; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "LAT": { UNIFORM; _unit addweapon "arifle_mas_m16"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addweapon "mas_launch_M136_F"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",12]; (unitBackpack _unit) addmagazineCargo ["30Rnd_mas_556x45_Stanag",2]; (unitBackpack _unit) addmagazineCargo ["mas_M136",1]; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "RIF": { UNIFORM; _unit addweapon "arifle_mas_m16"; _unit addPrimaryWeaponItem "optic_mas_acog_rd"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",12]; (unitBackpack _unit) addmagazineCargo ["30Rnd_mas_556x45_Stanag",18]; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "MG": { UNIFORM; _unit addweapon "LMG_mas_m240_F"; _unit addbackpack "B_mas_AssaultPack_mul"; _unit addmagazines ["100Rnd_mas_762x51_T_Stanag",5]; _unit addmagazines ["15Rnd_mas_9x21_Mag",3]; _unit addweapon "hgun_mas_m9_F"; _unit additem "AGM_SpareBarrel"; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "AMG": { UNIFORM; _unit addweapon "arifle_mas_m16"; _unit addbackpack "B_Carryall_mcamo"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",12]; (unitBackpack _unit) addmagazineCargo ["100Rnd_mas_762x51_T_Stanag",3]; (unitBackpack _unit) addmagazineCargo ["30Rnd_mas_556x45_Stanag",6]; _unit addmagazines ["HandGrenade",2]; _unit addmagazines ["SmokeShell",4]; _unit addmagazines ["SmokeShellGreen",2]; BASIC; }; case "CREW": { _unit adduniform "U_mas_mar_B_IndUniform1_v"; _unit addvest "V_mas_mar_ChestrigB_rgr"; _unit addheadgear "H_HelmetCrew_I"; _unit addweapon "arifle_mas_m4"; _unit addmagazines ["30Rnd_mas_556x45_Stanag",6]; _unit addmagazines ["SmokeShell",2]; _unit addmagazines ["SmokeShellGreen",1]; _unit additem "ACRE_PRC148"; BASIC; }; case "PIL": { _unit adduniform "U_mas_mar_B_pilot"; _unit addvest "V_mas_mar_Rangemaster_belt"; _unit addheadgear "H_PilotHelmetHeli_O"; _unit addweapon "arifle_mas_mp5"; _unit addPrimaryWeaponItem "optic_Aco_smg"; _unit addmagazines ["30Rnd_mas_9x21_Stanag",6]; _unit addmagazines ["SmokeShell",2]; _unit addmagazines ["SmokeShellGreen",1]; _unit additem "ACRE_PRC148"; BASIC; }; }; Script is called in the init if the unit. id = ["CASE", this] call compile preprocessFileLineNumbers "gearscript\gear.sqf"; Case being replaced with any defined case in the gear script. - 
	For my group's missions I use scripts originally made by Megagoth1702. In the init.sqf of your mission put in [] execVM "scripts\initTeleportToSL.sqf"; Then make a folder called "scripts" in your mission folder and make a "initTeleportToSL.sqf" and "TeleportToSL.sqf". initTeleportToSL.sqf sleep 5; movetoSL = player addAction ["Teleport To SL", "scripts\TeleportToSL.sqf"]; sleep 10; hintSilent "Use your scroll wheel to teleport to your squad leader"; sleep 180;//3min player removeAction movetoSL; TeleportToSL.sqf private ["_leader","_LX","_LY","_LZ"]; //setting up basic variables _leader = leader player; //If leader's vehicle is the leader himself, move player 3m behind him if (vehicle _leader == _leader) then { //Getting the coords _LX = (getpos _leader select 0) + (3*sin ((getDir _leader) -180)); _LY = (getpos _leader select 1) + (3*cos ((getDir _leader) -180)); _LZ = (getpos _leader select 2); player setpos [_LX,_LY,_LZ]; player removeAction movetoSL; } //If leader is inside vehicle, move player into vehicle cargo else { /*Checking if there is room in the vehicle, gives hint if there is none if there is room, player is moved into cargo of leader's vehicle */ if ((vehicle _leader) emptyPositions "cargo"==0) then {hint "No room in squad leader's vehicle."} else { player moveincargo vehicle _leader; player removeAction movetoSL; }; }; The scripts give every player, including JIPs and addaction that enables them to teleport to the leader of their group even if they're in a vehicle, assuming its not full. The addaction automatically disappears upon use or after 3 minutes.
 - 
	
	
				Need Some Help With a Multiplayer Gearscript
bertram replied to bertram's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I think I see what you're getting at. I won't be able to test it out for a few hours but would your suggestion look something like this? [ [ [ "CASE", this ] , GEARSCRIPT ], "BIS_fnc_Call", this, true, true ] call BIS_fnc_MP; 
            