Jump to content

Cotsifis

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About Cotsifis

  • Rank
    Newbie
  1. Hey people. So, i've been editing a Liberation mission for me and a couple of friends. However, the modlist we use is a little bit extense, and some mods include gear / equipment from other countries. Furthermore, these mods are necessary for the liberation mission, as the enemy force will be spawned from units from these mods. As i want to make something very standardized, i don't want people using gear from my country and then having somebody using a freaking russian helmet or whatever. To solve that problem i thought of hiding the arsenal option in the Main base and FOBs (By adding "//" to the arsenal script in the liberations source folder) and instead of having a full arsenal, having a tent with various cabinets and, by these cabinets, there are triggers that, once a player enters it's area, a loadout is assigned to that player. This is how it works: You enter the trigger Area, the trigger removes all of your gear, equipment and items and assign you new clothes, weapons, gear and items to replace the ones you've had on spawn. I've tested it, and works great. However, on Multiplayer sessions, it seems it stops working for some reason. i've read something about the player variable not working in multiplayer, because player in MP means everyone connected to the server, and not just the player that stepped on the trigger. Basically i want this script to be applied only to the one player that steps on that especific trigger, and not the whole player base. This is how the structure of my script is right now (still broken on MP): {removeVest _x} forEach thisList; {removeBackpack _x} forEach thisList; {removeHeadgear _x} forEach thisList; {removeUniform _x} forEach thisList; {removeAllWeapons _x} forEach thisList; {removeAllBinocularItems _x} forEach thisList; {removeGoggles _x} forEach thisList; {_x unassignItem "NVGoggles"} forEach thisList; {_x removeItem "NVGoggles"} forEach thisList; Player addWeapon "bel_fn_cal"; Player addWeapon "Binocular"; Player addPrimaryWeaponItem "20rd_556x45"; Player addWeapon "BAD_M1911"; Player addHandgunItem "9Rnd_45ACP_Mag"; Player forceAddUniform "BFMexercito_uniform1"; Player addVest "MEA_vest_EB_06"; Player addBackpack "br_alicepack_med"; Player addItemToUniform "ACE_EarPlugs"; Player addItemToUniform "ACE_IR_Strobe_Item"; for "_i" from 1 to 5 do {Player addItemToUniform "ACE_CableTie";}; for "_i" from 1 to 2 do {Player addItemToUniform "ACE_Canteen";}; for "_i" from 1 to 2 do {Player addItemToUniform "ACE_MRE_MeatballsPasta";}; for "_i" from 1 to 2 do {Player addItemToUniform "ACE_WaterBottle";}; Player addItemToUniform "ACE_MapTools"; Player addItemToUniform "ACE_microDAGR"; Player addItemToUniform "ACE_Flashlight_XL50"; Player addItemToUniform "ACE_wirecutter"; Player addItemToUniform "ACE_EntrenchingTool"; Player addItemToUniform "ACRE_PRC343"; for "_i" from 1 to 6 do {Player addItemToUniform "9Rnd_45ACP_Mag";}; for "_i" from 1 to 6 do {Player addItemToVest "20rd_556x45";}; Player addItemToBackpack "NVGoggles_INDEP"; Player addItemToBackpack "Medikit"; for "_i" from 1 to 5 do {Player addItemToBackpack "FirstAidKit";}; for "_i" from 1 to 2 do {Player addItemToBackpack "20rd_556x45";}; for "_i" from 1 to 4 do {Player addItemToBackpack "HandGrenade";}; for "_i" from 1 to 4 do {Player addItemToBackpack "SmokeShell";}; Player addHeadgear "EB_helmet_ballistic_C"; Player addGoggles "G_Tactical_Clear"; Player linkItem "ItemMap"; Player linkItem "ItemCompass"; Player linkItem "ItemWatch"; Player linkItem "ItemRadio"; If anyone knows wich variable i can replace for the player, that'd be a great life-saver. Thanks in advance!
×