BEAKSBY 11 Posted June 5, 2014 Hi ALL, I am merging two missions, one that had respawn templates and one using initPlayerLocal.sqf using a MP money script. The repawn template is working but for some reason the mission is not executing any of the addActions in the initPlayerLocal.sqf? I don't have an init.sqf anymore, as I added it from the from the mission with the respawn template to the new initServer.sqf description.ext author = "CJK"; onLoadName = "CustomMenu & Money & Sectors"; loadScreen = "pictures\OutfitCharacters1024_CA.paa"; enableDebugConsole = 1; class CfgFunctions { #include "functions\cfgFunctions.hpp" }; respawn = "BASE"; respawnDelay = 5; respawnTemplates[] = {"MenuInventory","MenuPosition"}; class Header { gameType = Hold; minPlayers = 1; maxPlayers = 6; }; class CfgRespawnInventory { class WEST1 { displayName = "Captain 'Deuce' Williams"; // Name visible in the menu icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\captain_gs.paa"; // Icon displayed next to the name // Loadout definition, uses same entries as CfgVehicles classes vehicle[] = { "B_soldier_AT_F" }; weapons[] = { "launch_B_Titan_short_F", "Titan_AT", // "hgun_Pistol_heavy_02_Yorris_F" // "hgun_Pistol_heavy_01_F" // "11Rnd_45ACP_Mag" "hgun_Pistol_heavy_01_MRD_F", // "hgun_Pistol_heavy_01_snds_F" "Binocular" }; magazines[] = { "11Rnd_45ACP_Mag", "11Rnd_45ACP_Mag", "11Rnd_45ACP_Mag", "6Rnd_45ACP_Cylinder", "6Rnd_45ACP_Cylinder", "6Rnd_45ACP_Cylinder", "Titan_AT", "Titan_AT", "Titan_AT", "Titan_AT", "Titan_AT", "Titan_AT", "Titan_AT", "SmokeShell" }; items[] = { "Titan_AT", "Titan_AT", "FirstAidKit" }; linkedItems[] = { "V_Chestrig_khk", "H_Watchcap_blk", "optic_Aco", "acc_flashlight", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio" }; // uniformClass = "U_B_CombatUniform_mcam_tshirt"; uniformClass = "U_NikosAgedBody"; backpack = "B_Carryall_cbr"; // B_AssaultPack_mcamo B_AssaultPack_rgr_LAT }; class WEST2 { displayName = "Sergeant Thomas 'Mac' Macintyre"; // Name visible in the menu icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\sergeant_gs.paa"; // Icon displayed next to the name // Alternative configuration pointing to a CfgVehicles class. Loadout will be copied from it. // vehicle = "B_soldier_AR_F"; vehicle[] = { "B_soldier_AR_F" }; weapons[] = { "LMG_Zafir_pointer_F", // "150Rnd_762x51_Box_Tracer", "Laserdesignator" }; magazines[] = { "Laserbatteries", "Laserbatteries", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "150Rnd_762x51_Box_Tracer", "SmokeShellGreen" }; items[] = { "Medikit" }; linkedItems[] = { "V_Chestrig_khk", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio" }; uniformClass = "U_B_CombatUniform_mcam_tshirt"; backpack = "B_Carryall_cbr"; }; class WEST3 { displayName = "Lieutenant John Davis Tyler"; // Name visible in the menu icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\lieutenant_gs.paa"; // Icon displayed next to the name // Loadout definition, uses same entries as CfgVehicles classes // vehicle = "B_recon_M_F"; vehicle[] = { "B_recon_M_F" }; weapons[] = { "srifle_EBR_DMS_pointer_snds_F", // arifle_MXM_ARCO_point_gripod_F" "srifle_EBR_ARCO_point_grip_F", // "srifle_EBR_MRCO_pointer_F", // "srifle_EBR_ARCO_pointer_snds_F", "hgun_P07_F" }; magazines[] = { "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "20Rnd_762x51_Mag", "20Rnd_762x51_Mag", "20Rnd_762x51_Mag", "20Rnd_762x51_Mag", "20Rnd_762x51_Mag", "20Rnd_762x51_Mag", "SmokeShell" }; items[] = { "Rangefinder" }; linkedItems[] = { "V_Chestrig_khk", "H_Watchcap_blk", "ItemMap", "ItemCompass", "ItemWatch", "muzzle_snds_B", "ItemRadio", "muzzle_snds_L" }; uniformClass = "U_B_GhillieSuit"; backpack = "B_AssaultPack_mcamo"; // B_AssaultPack_mcamo B_AssaultPack_rgr_LAT }; class EAST1 { // Alternative configuration pointing to a CfgVehicles class. Loadout will be copied from it. vehicle = "O_Soldier_AT_F"; }; class EAST2 { // Alternative configuration pointing to a CfgVehicles class. Loadout will be copied from it. vehicle = "O_soldier_AR_F"; }; class EAST3 { // Alternative configuration pointing to a CfgVehicles class. Loadout will be copied from it. vehicle = "O_soldier_M_F"; }; }; mission.sqm version=12; class Mission { addOns[]= { "A3_Characters_F_BLUFOR", "a3_map_stratis", "A3_Characters_F_OPFOR", "a3_characters_f", "A3_Modules_F", "A3_Modules_F_Multiplayer", "A3_Missions_F_Curator", "A3_Modules_F_Curator_Multiplayer", "A3_Structures_F_Civ_Camping", "A3_Structures_F_Mil_Flags", "A3_Structures_F_Items_Vessels", "A3_Structures_F_Ind_Transmitter_Tower", "A3_Structures_F_Mil_Barracks" }; addOnsAuto[]= { "A3_Characters_F_BLUFOR", "a3_characters_f", "A3_Characters_F_OPFOR", "A3_Modules_F", "A3_Modules_F_Multiplayer", "A3_Missions_F_Curator", "A3_Modules_F_Curator_Multiplayer", "A3_Structures_F_Civ_Camping", "A3_Structures_F_Mil_Flags", "A3_Structures_F_Items_Vessels", "A3_Structures_F_Ind_Transmitter_Tower", "A3_Structures_F_Mil_Barracks", "a3_map_stratis" }; randomSeed=42961; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=7; day=6; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; class Groups { items=20; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={1728.2334,5.5,5736.7012}; azimut=-87.539871; id=0; side="WEST"; vehicle="B_Soldier_F"; leader=1; skill=0.60000002; init="this setCaptive true"; }; }; }; class Item1 { side="EAST"; class Vehicles { items=1; class Item0 { position[]={1717.5704,5.5,5736.5298}; azimut=84.304733; id=1; side="EAST"; vehicle="O_Soldier_F"; leader=1; skill=0.60000002; }; }; }; class Item2 { side="EAST"; class Vehicles { items=1; class Item0 { position[]={1714.4545,5.5,5745.1357}; azimut=84.304733; id=2; side="EAST"; vehicle="O_Soldier_F"; leader=1; skill=0.60000002; text="test"; }; }; }; class Item3 { side="EAST"; class Vehicles { items=1; class Item0 { position[]={1714.8047,5.5,5730.7324}; azimut=84.304733; id=3; side="EAST"; vehicle="O_Soldier_F"; leader=1; skill=0.60000002; }; }; }; class Item4 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={1714.4017,5.5,5718.6079}; azimut=86.080597; id=4; side="WEST"; vehicle="B_Soldier_F"; player="PLAY CDG"; leader=1; skill=0.60000002; }; }; }; class Item5 { side="EAST"; class Vehicles { items=9; class Item0 { position[]={1724.3795,5.5,5722.166}; azimut=-91.769836; special="NONE"; id=5; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item1 { position[]={1727.5015,5.5,5719.1094}; azimut=-91.769836; special="NONE"; id=6; side="EAST"; vehicle="O_Soldier_F"; leader=1; rank="CORPORAL"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item2 { position[]={1727.7266,5.5,5716.0688}; azimut=-91.769836; special="NONE"; id=7; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item3 { position[]={1724.5992,5.5,5718.96}; azimut=-91.769836; special="NONE"; id=8; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item4 { position[]={1724.7999,5.5,5715.6719}; azimut=-91.769836; special="NONE"; id=9; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item5 { position[]={1727.4503,5.5,5722.3804}; azimut=-91.769836; special="NONE"; id=10; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item6 { position[]={1730.3285,5.5,5719.2559}; azimut=-91.769836; special="NONE"; id=11; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item7 { position[]={1730.5284,5.5,5715.9653}; azimut=-91.769836; special="NONE"; id=12; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item8 { position[]={1730.111,5.5,5722.4634}; azimut=-91.769836; special="NONE"; id=13; side="EAST"; vehicle="O_Soldier_F"; skill=0.60000002; health=0; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; }; }; class Item6 { side="EAST"; class Vehicles { items=1; class Item0 { position[]={1714.4763,5.5,5708.209}; azimut=86.315002; special="NONE"; id=14; side="EAST"; vehicle="O_Soldier_F"; player="PLAY CDG"; leader=1; skill=0.60000002; }; }; }; class Item7 { side="WEST"; class Vehicles { items=9; class Item0 { position[]={1728.3252,5.5,5708.0654}; azimut=-86.957649; special="NONE"; id=15; side="WEST"; vehicle="B_Soldier_F"; leader=1; rank="CORPORAL"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item1 { position[]={1725.0623,5.5,5704.3252}; azimut=-86.957649; special="NONE"; id=16; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item2 { position[]={1725.2554,5.5,5708.0732}; azimut=-86.957649; special="NONE"; id=17; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item3 { position[]={1725.5889,5.5,5711.8325}; azimut=-86.957649; special="NONE"; id=18; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item4 { position[]={1728.6565,5.5,5711.8306}; azimut=-86.957649; special="NONE"; id=19; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item5 { position[]={1731.5289,5.5,5711.6768}; azimut=-86.957649; special="NONE"; id=20; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item6 { position[]={1731.1937,5.5,5707.916}; azimut=-86.957649; special="NONE"; id=21; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item7 { position[]={1730.9976,5.5,5704.1724}; azimut=-86.957649; special="NONE"; id=22; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; class Item8 { position[]={1728.1285,5.5,5704.3232}; azimut=-86.957649; special="NONE"; id=23; side="WEST"; vehicle="B_Soldier_F"; skill=0.60000002; ammo=0; init="this disableAI ""MOVE""; this setUnitPos ""UP"""; }; }; }; class Item8 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1720.0084,5.5,5671.3013}; id=24; side="LOGIC"; vehicle="LocationArea_F"; leader=1; skill=0.60000002; syncId=0; synchronizations[]={12,10}; }; }; }; class Item9 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1726.3344,5.5,5662.2051}; id=25; side="LOGIC"; vehicle="SideOPFOR_F"; leader=1; skill=0.60000002; syncId=1; synchronizations[]={10}; }; }; }; class Item10 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1706.136,5.5,5667.5361}; id=26; side="LOGIC"; vehicle="SideBLUFOR_F"; leader=1; skill=0.60000002; syncId=2; synchronizations[]={10}; }; }; }; class Item11 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1701.2927,5.5,5650.2944}; class args { items=4; class Item0 { value=""; parentCls="ModuleRespawnPosition_F"; typeName="Name"; }; class Item1 { value="0"; parentCls="ModuleRespawnPosition_F"; typeName="Type"; }; class Item2 { value="0"; parentCls="ModuleRespawnPosition_F"; typeName="Side"; }; class Item3 { value="0"; parentCls="ModuleRespawnPosition_F"; typeName="Marker"; }; }; id=27; side="LOGIC"; vehicle="ModuleRespawnPosition_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; }; }; }; class Item12 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1705.9626,5.5,5649.543}; class args { items=4; class Item0 { value=""; parentCls="ModuleRespawnPosition_F"; typeName="Name"; }; class Item1 { value="0"; parentCls="ModuleRespawnPosition_F"; typeName="Type"; }; class Item2 { value="1"; parentCls="ModuleRespawnPosition_F"; typeName="Side"; }; class Item3 { value="0"; parentCls="ModuleRespawnPosition_F"; typeName="Marker"; }; }; id=28; side="LOGIC"; vehicle="ModuleRespawnPosition_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; }; }; }; class Item13 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1699.0975,5.5,5612.6558}; id=29; side="LOGIC"; vehicle="SideBLUFOR_F"; leader=1; skill=0.60000002; syncId=3; synchronizations[]={5}; }; }; }; class Item14 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1713.2899,5.5,5611.0835}; id=30; side="LOGIC"; vehicle="SideOPFOR_F"; leader=1; skill=0.60000002; syncId=4; synchronizations[]={5}; }; }; }; class Item15 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1695.6708,5.5,5616.8882}; id=31; side="LOGIC"; vehicle="ModuleMPTypeSectorControl_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; syncId=5; synchronizations[]={3,4,6}; }; }; }; class Item16 { side="LOGIC"; class Vehicles { items=2; class Item0 { position[]={1696.3353,5.5,5619.6157}; class args { items=15; class Item0 { value="sector2"; parentCls="ModuleSector_F"; typeName="Name"; }; class Item1 { value="2"; parentCls="ModuleSector_F"; typeName="Designation"; }; class Item2 { value="0"; parentCls="ModuleSector_F"; typeName="ScoreReward"; }; class Item3 { value=""; parentCls="ModuleSector_F"; typeName="OnOwnerChange"; }; class Item4 { value="0"; parentCls="ModuleSector_F"; typeName="OwnerLimit"; }; class Item5 { value="-1"; parentCls="ModuleSector_F"; typeName="DefaultOwner"; }; class Item6 { value="1"; parentCls="ModuleSector_F"; typeName="TaskOwner"; }; class Item7 { value=""; parentCls="ModuleSector_F"; typeName="TaskTitle"; }; class Item8 { value=""; parentCls="ModuleSector_F"; typeName="TaskDescription"; }; class Item9 { value="1"; parentCls="ModuleSector_F"; typeName="CostInfantry"; }; class Item10 { value="2"; parentCls="ModuleSector_F"; typeName="CostWheeled"; }; class Item11 { value="4"; parentCls="ModuleSector_F"; typeName="CostTracked"; }; class Item12 { value="0"; parentCls="ModuleSector_F"; typeName="CostWater"; }; class Item13 { value="2"; parentCls="ModuleSector_F"; typeName="CostAir"; }; class Item14 { value="2"; parentCls="ModuleSector_F"; typeName="CostPlayers"; }; }; id=32; side="LOGIC"; vehicle="ModuleSector_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; text="sector2"; syncId=6; synchronizations[]={5,8}; }; class Item1 { position[]={1710.6814,5.5,5633.1763}; class args { items=3; class Item0 { value=".33"; parentCls="ModuleBleedTickets_F"; typeName="ticketBleedRatio"; }; class Item1 { value="3"; parentCls="ModuleBleedTickets_F"; typeName="delay"; }; class Item2 { value="1"; parentCls="ModuleBleedTickets_F"; typeName="ticketBleedMax"; }; }; id=33; side="LOGIC"; vehicle="ModuleBleedTickets_F"; lock="UNLOCKED"; skill=0.60000002; text="YYY"; syncId=7; synchronizations[]={9}; }; }; }; class Item17 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1689.5359,5.5,5620.3384}; id=34; side="LOGIC"; vehicle="LocationArea_F"; leader=1; skill=0.60000002; syncId=8; synchronizations[]={13,6}; }; }; }; class Item18 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={1721.4337,5.5,5632.9595}; class args { items=4; class Item0 { value="500"; parentCls="ModuleRespawnTickets_F"; typeName="WEST"; }; class Item1 { value="500"; parentCls="ModuleRespawnTickets_F"; typeName="EAST"; }; class Item2 { value=""; parentCls="ModuleRespawnTickets_F"; typeName="GUER"; }; class Item3 { value=""; parentCls="ModuleRespawnTickets_F"; typeName="CIV"; }; }; id=35; side="LOGIC"; vehicle="ModuleRespawnTickets_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; text="ZZZ"; syncId=9; synchronizations[]={7,11}; }; }; }; class Item19 { side="LOGIC"; class Vehicles { items=2; class Item0 { position[]={1714.7263,5.5,5668.5093}; class args { items=15; class Item0 { value="Motor Pool"; parentCls="ModuleSector_F"; typeName="Name"; }; class Item1 { value="M"; parentCls="ModuleSector_F"; typeName="Designation"; }; class Item2 { value="0"; parentCls="ModuleSector_F"; typeName="ScoreReward"; }; class Item3 { value=""; parentCls="ModuleSector_F"; typeName="OnOwnerChange"; }; class Item4 { value="0"; parentCls="ModuleSector_F"; typeName="OwnerLimit"; }; class Item5 { value="-1"; parentCls="ModuleSector_F"; typeName="DefaultOwner"; }; class Item6 { value="0"; parentCls="ModuleSector_F"; typeName="TaskOwner"; }; class Item7 { value=""; parentCls="ModuleSector_F"; typeName="TaskTitle"; }; class Item8 { value=""; parentCls="ModuleSector_F"; typeName="TaskDescription"; }; class Item9 { value="1"; parentCls="ModuleSector_F"; typeName="CostInfantry"; }; class Item10 { value="2"; parentCls="ModuleSector_F"; typeName="CostWheeled"; }; class Item11 { value="4"; parentCls="ModuleSector_F"; typeName="CostTracked"; }; class Item12 { value="0"; parentCls="ModuleSector_F"; typeName="CostWater"; }; class Item13 { value="2"; parentCls="ModuleSector_F"; typeName="CostAir"; }; class Item14 { value="2"; parentCls="ModuleSector_F"; typeName="CostPlayers"; }; }; id=36; side="LOGIC"; vehicle="ModuleSector_F"; leader=1; lock="UNLOCKED"; skill=0.60000002; text="sector1"; syncId=10; synchronizations[]={0,2,1}; }; class Item1 { position[]={1719.9353,5.5,5648.5044}; class args { items=3; class Item0 { value="0"; parentCls="ModuleBleedTickets_F"; typeName="ticketBleedRatio"; }; class Item1 { value="0"; parentCls="ModuleBleedTickets_F"; typeName="delay"; }; class Item2 { value="0"; parentCls="ModuleBleedTickets_F"; typeName="ticketBleedMax"; }; }; id=37; side="LOGIC"; vehicle="ModuleBleedTickets_F"; lock="UNLOCKED"; skill=0.60000002; text="YYY_1"; syncId=11; synchronizations[]={9}; }; }; }; }; class Vehicles { items=8; class Item0 { position[]={1702.5355,5.5,5665.3149}; azimut=32.43932; id=38; side="EMPTY"; vehicle="Land_ToiletBox_F"; skill=0.60000002; }; class Item1 { position[]={1720.7312,5.5,5660.2817}; azimut=32.43932; id=39; side="EMPTY"; vehicle="Land_ToiletBox_F"; skill=0.60000002; }; class Item2 { position[]={1726.2953,5.5,5678.3477}; azimut=32.43932; id=40; side="EMPTY"; vehicle="Land_ToiletBox_F"; skill=0.60000002; }; class Item3 { position[]={1707.5349,5.5,5684.1074}; azimut=32.43932; id=41; side="EMPTY"; vehicle="Land_ToiletBox_F"; skill=0.60000002; }; class Item4 { position[]={1695.7545,5.5,5623.186}; id=42; side="EMPTY"; vehicle="Flag_White_F"; skill=0.60000002; }; class Item5 { position[]={1695.6261,5.5,5623.0464}; id=43; side="EMPTY"; vehicle="MetalBarrel_burning_F"; skill=0.60000002; }; class Item6 { position[]={1703.8226,5.5,5641.8994}; id=44; side="EMPTY"; vehicle="Land_TBox_F"; lock="UNLOCKED"; skill=0.60000002; text="bbb"; init="this allowDamage false;"; }; class Item7 { position[]={1683.1759,5.5,5641.8213}; id=45; side="EMPTY"; vehicle="Land_Barracks_ruins_F"; lock="UNLOCKED"; skill=0.60000002; text="AAA_1_1"; }; }; class Sensors { items=6; class Item0 { position[]={1714.3712,5.5,5671.9956}; a=10; b=10; angle=15.0025; rectangular=1; activationBy="ANY"; repeating=1; interruptable=1; age="UNKNOWN"; class Effects { }; synchronizations[]={0}; syncId=12; }; class Item1 { position[]={1738.2979,5.5,5675.0132}; a=0; b=0; repeating=1; interruptable=1; age="UNKNOWN"; name="RespawnPointMotorPool"; expCond="sector1 getVariable 'owner' == WEST; "; expActiv="hint format [""Owner %1"",sector1 getvariable 'owner']; respawn_W_MotorPool = [WEST, sector1] call BIS_fnc_addRespawnPosition; respawn_E_MotorPool call BIS_fnc_removeRespawnPosition; "; class Effects { }; }; class Item2 { position[]={1744.5189,5.5,5674.8574}; a=0; b=0; repeating=1; interruptable=1; age="UNKNOWN"; name="RespawnPointMotorPool_1"; expCond="sector1 getVariable 'owner' == EAST; "; expActiv="hint format [""Owner %1"", sector1 getvariable 'owner']; respawn_E_MotorPool = [EAST, sector1] call BIS_fnc_addRespawnPosition; respawn_W_MotorPool call BIS_fnc_removeRespawnPosition; "; class Effects { }; }; class Item3 { position[]={1695.536,5.5,5623.0913}; a=10; b=10; repeating=1; interruptable=1; age="UNKNOWN"; class Effects { }; synchronizations[]={8}; syncId=13; }; class Item4 { position[]={1727.6768,5.5,5620.106}; a=0; b=0; activationBy="LOGIC"; repeating=1; interruptable=1; age="UNKNOWN"; name="RespawnPointMotorPool_1_1"; expCond="sector2 getVariable 'owner' == WEST; "; expActiv="hint format [""Owner %1"",sector2 getvariable 'owner']; respawn_W_SO2 = [WEST, sector2] call BIS_fnc_addRespawnPosition; respawn_E_SO2 call BIS_fnc_removeRespawnPosition; "; class Effects { }; }; class Item5 { position[]={1737.2126,5.5,5620.2554}; a=0; b=0; activationBy="LOGIC"; repeating=1; interruptable=1; age="UNKNOWN"; name="RespawnPointMotorPool1_1"; expCond="sector2 getVariable 'owner' == EAST; "; expActiv="hint format [""Owner %1"", sector2 getvariable 'owner']; respawn_E_SO2 = [EAST, sector2] call BIS_fnc_addRespawnPosition; respawn_W_SO2 call BIS_fnc_removeRespawnPosition; "; class Effects { }; }; }; }; class Intro { addOns[]= { "a3_map_stratis" }; addOnsAuto[]= { "a3_map_stratis" }; randomSeed=6534585; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=7; day=6; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; class OutroWin { addOns[]= { "a3_map_stratis" }; addOnsAuto[]= { "a3_map_stratis" }; randomSeed=7928344; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=7; day=6; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; class OutroLoose { addOns[]= { "a3_map_stratis" }; addOnsAuto[]= { "a3_map_stratis" }; randomSeed=5900555; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=7; day=6; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; initServer.sqf /* * @Author: * @Profile: http://steamcommunity.com/id/dna_uk * @Date: 2014-05-28 17:38:56 * @Last Modified by: DnA * @Last Modified time: 2014-05-28 20:22:09 */ { //--- Add killed EH to unit _handle = _x addEventHandler [ "Killed", { _unit = _this select 0; _killer = _this select 1; _handle = _unit getVariable [ "DNA_EH_Killed_Money", -1 ]; //--- Check if opposite side is killed by killer if (side group _killer != side group _unit) then { //--- Add money to the client [ 100, "DNA_fnc_addMoney", _killer ] call BIS_fnc_MP; // hint format [ "You have $%1", DNA_Money ]; // THIS ONLY WORKS ON SERVER SIDE }; //--- Remove the event handler _unit removeEventHandler [ "Killed", _handle ]; } ]; //--- Store killed EH handle in unit namespace _x setVariable [ "DNA_EH_Killed_Money", _handle ]; } forEach allUnits; Createcenter EAST; Createcenter WEST; WEST setFriend [EAST,0]; EAST setFriend [WEST,0]; [west, "WEST1"] call BIS_fnc_addRespawnInventory; [west, "WEST2"] call BIS_fnc_addRespawnInventory; [west, "WEST3"] call BIS_fnc_addRespawnInventory; [east, "EAST1"] call BIS_fnc_addRespawnInventory; [east, "EAST2"] call BIS_fnc_addRespawnInventory; [east, "EAST3"] call BIS_fnc_addRespawnInventory; if (sector1 getVariable 'owner' == WEST) then {[west, "sector1"] call BIS_fnc_addRespawnPosition}; // [west, "Sector2"] call BIS_fnc_addRespawnPosition; [west,[1685,5640,150]] call BIS_fnc_addRespawnPosition; [east,[1685,5640,150]] call BIS_fnc_addRespawnPosition; // [getPos player, WEST, 5] call BIS_fnc_spawnGroup; [] execVM "cleanup.sqf"; initPlayerLocal.sqf /* * @Author: * @Profile: http://steamcommunity.com/id/dna_uk * @Date: 2014-05-28 17:36:15 * @Last Modified by: DnA * @Last Modified time: 2014-05-28 20:18:57 */ _jip = _this select 1; //--- Default money DNA_Money = 5000; //--- Check balance action player addAction [ "<t color='#00dd00'>Account Balance</t>", { hint format [ "You have $%1", DNA_Money ] } ]; // Other addAction to test player addAction ["Player identity", { hint format ["Player name is %1", _this select 3] }, name player]; player addAction ["Player side", { hint format ["Player side is %1", _this select 3] }, side player]; _playerHealth = (1 - (damage player))*100; player addAction ["Player's health", { hint format ["Player's health is %1", _this select 3] }, _playerHealth ]; player addAction ["<t color='#fa00ff' t size='2' >DESTRUCTION ON DEMAND</t>","Comm.sqf"]; Share this post Link to post Share on other sites
BEAKSBY 11 Posted June 5, 2014 I will add the following to the initPlayerLocal.sqf waitUntil {!isNull player}; //////////////////////////////////////////////////// If (side player == WEST) then {// for west units player addAction ["<t color='#FF0000'>M2A4 Slammer UP $1200</t>", "ArmorDrop.sqf",[],0,true,true,"","sector1 getVariable 'owner' == side _this and _this == _target && ((screenToWorld [0.5,0.5]) distance (_target) < 100)"] ; player addEventHandler ["RESPAWN", { player addAction ["<t color='#FF0000'>M2A4 Slammer UP $1200</t>", "ArmorDrop.sqf",[],0,true,true,"","sector1 getVariable 'owner' == side _this and _this == _target && ((screenToWorld [0.5,0.5]) distance (_target) < 100)"]; }]; } else {// change this for east units player addAction ["<t color='#FF0000'>T-100 Varsuk $1200</t>", "O_ArmorDrop.sqf",[],0,true,true,"","sector1 getVariable 'owner' == side _this and _this == _target"] ; player addEventHandler ["RESPAWN", { player addAction ["<t color='#FF0000'>T-100 Varsuk $1200</t>", "O_ArmorDrop.sqf",[],0,true,true,"","sector1 getVariable 'owner' == side _this and _this == _target"]; }]; }; Share this post Link to post Share on other sites
BEAKSBY 11 Posted June 6, 2014 That solved it! Thanks BEAKSBY Share this post Link to post Share on other sites