ross8839
Member-
Content Count
11 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout ross8839
-
Rank
Private First Class
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Altis Life Repair Script
ross8839 replied to ross8839's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay mate, thankyou! -
Altis Life Repair Script
ross8839 replied to ross8839's topic in ARMA 3 - MISSION EDITING & SCRIPTING
the only way anything else is going to conflict with that, is if there's another file named repair.sqf in the altis life mission files, which there isn't... I might try the mission without implementing it into the altis life files, meh, i don't know xD -
So I want around 5 civ spots to be mechanics (will be independent soon when I know how) but my script doesn't work... the repair vehicle script initializes but when i'm near any vehicle, damaged or not (i do have a toolkit in my inventory) and i click repair, it will say I'm too far away from the vehicle... why does it do this? Bearing in mind, this script is within the arma 3 altis life mission files. Thanks in advance :) Mission sqm: class Item2 { position[]={2347.4771,12.879028,9307.1348}; azimut=-769.80603; id=2; side="WEST"; vehicle="B_medic_F"; player="PLAY CDG"; skill=0.60000002; text="cop_3"; init="removeBackpack this; removeAllWeapons this; this addAction[""Repair Vehicle"",""repair.sqf""];"; description="WhiteListed - Cop (TS: 37.187.129.207)"; }; Repair sqf _vehicle = (nearestObjects [player, ["B_Hunter_F"], 5]); _veh = _vehicle select 0; _vehDamage = getDammage _veh; if (count _vehicle == 1) then { if (vehicle player == player) then { if ("ToolKit" in (itemCargo player)) then { {player playActionNow "medicStart"; sleep 10; _vehDamage = _veh setDamage 0; player playActionNow "medicStop";} } else {hint "You need a Toolkit to repair a vehicle";} } else {hint "You cannot repair from inside the vehicle";} } else {hint "You are too far away from the vehicle";}; exit;
-
ArmA 3 Altis Life: How to add a new side / faction / team to ArmA 3 Altis Life?
ross8839 replied to Ringo82's topic in ARMA 3 - USER MISSIONS
they are able to have those because I don't think they're using mysql for their save files, but rather a local folder of some kind. The mysql i think is what stops us adding extra factions to the Altis life mission, however it is of course possible :p -
Altis Life - How to make Clothes save?
ross8839 replied to ross8839's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Bump - it's only for cops, clothes save for civilians. There has to be someone here that know the fix to my problem :( -
Altis Life - How to make Clothes save?
ross8839 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have tried editing the following files in the Altis Life core folder but unfortunately couldn't get clothes to save. I tried adding the item as an allowed item on both, but that didn't work so has anyone got any idea of how I can make additional clothes save? Load Gear File: /* File: fn_loadGear.sqf Author: Bryan "Tonic" Boardwine Description: Used for loading cop saved gear loadout. */ private["_allowedItems","_loadout","_primary","_launcher","_handgun","_magazines","_uniform","_vest","_backpack","_items","_primitems","_secitems","_handgunitems","_uitems","_vitems","_bitems","_handle"]; _loadout = cop_gear; _allowedItems = [ "arifle_sdar_F", "hgun_P07_snds_F", "hgun_p07_F", "arifle_MX_F", "SMG_02_ACO_F", "optic_Holosight", "acc_flashlight", "arifle_MXC_F", "arifle_MXM_F", "optic_Arco", "optic_MRCO", "muzzle_snds_H", "muzzle_snds_L" ]; if(isNil "_loadout") exitWith {[] call life_fnc_copDefault;}; //Slot data doesn't exist if(count _loadout == 0) exitWith {[] call life_fnc_copDefault;}; //Slot data doesn't exist _primary = _loadout select 0; _launcher = ""; _handgun = _loadout select 1; _magazines = _loadout select 2; _uniform = _loadout select 3; _vest = _loadout select 4; _backpack = _loadout select 5; _items = _loadout select 6; _primitems = _loadout select 7; _secitems = _loadout select 8; _handgunitems = _loadout select 9; _uitems = _loadout select 10; _vitems = _loadout select 11; _bitems = _loadout select 12; //This is to piss off cops :) if(!(_primary in _allowedItems)) then {_primary = ""}; if(!(_handgun in _allowedItems)) then {_handgun = ""}; //Strip the unit down RemoveAllWeapons player; {player removeMagazine _x;} foreach (magazines player); removeUniform player; removeVest player; removeBackpack player; removeGoggles player; removeHeadGear player; { player unassignItem _x; player removeItem _x; } foreach (assignedItems player); //Add the gear if(_uniform != "") then {_handle = [_uniform,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};}; if(_vest != "") then {_handle = [_vest,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};}; if(_backpack != "") then {_handle = [_backpack,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};}; { _handle = [_x,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle}; } foreach _magazines; if(_primary != "") then {[_primary,true,false,false,false] spawn life_fnc_handleItem;}; if(_launcher != "") then {[_launcher,true,false,false,false] spawn life_fnc_handleItem;}; if(_handgun != "") then {[_handgun,true,false,false,false] spawn life_fnc_handleItem;}; {_handle = [_x,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};} foreach _items; {[_x,true,false,false,true] call life_fnc_handleItem;} foreach (_uitems); {[_x,true,false,false,true] call life_fnc_handleItem;} foreach (_vitems); {[_x,true,true,false,false] call life_fnc_handleItem;} foreach (_bitems); {[_x,true,false,true,false] call life_fnc_handleItem;} foreach (_primitems); {[_x,true,false,true,false] call life_fnc_handleItem;} foreach (_secitems); {[_x,true,false,true,false] call life_fnc_handleItem;} foreach (_handgunitems); if(primaryWeapon player != "") then { player selectWeapon (primaryWeapon player); }; Save Gear File: /* File: fn_saveGear.sqf Author: Bryan "Tonic" Boardwine Description: Saves the player / cops gear in a formatted array. */ private["_allowedItems","_primary","_handgun","_magazines","_uniform","_vest","_backpack","_items","_primitems","_secitems","_handgunitems","_uitems","_vitems","_bitems","_curWep"]; //Pre-approved weapons / attachments _allowedItems = [ "arifle_sdar_F", "hgun_P07_snds_F", "hgun_p07_F", "arifle_MX_F", "SMG_02_ACO_F", "optic_Holosight", "acc_flashlight", "arifle_MXC_F", "arifle_MXM_F", "optic_Arco", "optic_MRCO", "muzzle_snds_H", "muzzle_snds_L" ]; //Old format / code _primary = primaryWeapon player; _handgun = handGunWeapon player; _magazines = []; _uniform = uniform player; _vest = vest player; _backpack = backpack player; _items = assignedItems player; _primitems = primaryWeaponItems player; _secitems = secondaryWeaponItems player; _handgunitems = handGunItems player; _uitems = []; _vitems = []; _bitems = []; if(!(_primary in _allowedItems)) then {_primary = ""}; if(!(_handgun in _allowedItems)) then {_handgun = ""}; if(_uniform != "") then {{_uitems set[count _uitems,_x];} foreach (uniformItems player);}; if(_vest != "") then {{_vitems set[count _vitems,_x];} foreach (vestItems player);}; if(_backpack != "") then {{_bitems set[count _bitems,_x];} foreach (backPackItems player);}; if(goggles player != "") then { _items set[count _items, goggles player]; }; if(headgear player != "") then { _items set[count _items, headgear player]; }; if(count (primaryWeaponMagazine player) > 0) then { { _magazines set[count _magazines,_x]; } foreach (primaryWeaponMagazine player); }; if(count (handgunMagazine player) > 0) then { { _magazines set[count _magazines,_x]; } foreach (handgunMagazine player); }; //Hard code for Laser Desigantor batteries _curWep = currentWeapon player; if("Laserdesignator" in assignedItems player) then { player selectWeapon "Laserdesignator"; if(currentMagazine player != "") then {_magazines set[count _magazines,(currentMagazine player)];}; }; player selectWeapon _curWep; cop_gear = [_primary,_handgun,_magazines,_uniform,_vest,_backpack,_items,_primitems,_secitems,_handgunitems,_uitems,_vitems,_bitems]; -
As for this, the script carries on much more, and the main switch is closed off further down the script. and thankyou for noticing the comma! and Fusion, I did say it's probably something simple i missed!:p
-
I added an extra two shops to the police hq's, but for some reason, none of the shops show anything now, so my guess is I've missed something out somewhere and my eyes are just failing to see it, or maybe the classnames aren't working with Altis Life? Can anyone tell me what i need to change to this script in order to get it to work? switch(_shop) do { case "cop_misc": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; default { ["Tool Shed", [ ["Binocular",nil,500], ["ItemGPS",nil,1200], ["ToolKit",nil,350], ["FirstAidKit",nil,250], ["Medikit",nil,1500], ["NVGoggles",nil,10000] ] ]; }; }; }; case "cop_basic": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 1): {You are not a cadet!"}; default { ["Altis Cop Shop", [ ["arifle_sdar_F","Taser Rifle",20000], ["hgun_P07_snds_F","Stun Pistol",2000], ["hgun_P07_F",nil,7500], ["16Rnd_9x21_Mag",nil,50], ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",125] ] ]; }; }; }; case "cop_patrol": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 2): {"You are not an officer!"} default { ["Altis Patrol Officer Shop", [ ["SMG_02_F",nil,4000], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_9x21_Mag",nil,300], ["16Rnd_9x21_Mag",nil,150], ["9Rnd_45ACP_Mag",nil,200] ] ]; }; }; }; case "cop_sergeant": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 3): {"You are not a sergeant!"}; default { ["Altis Sergeant Officer Shop", [ ["arifle_Mk20_plain_F",nil,15000], ["arifle_MXC_F",nil,30000], ["arifle_TRG21_F",nil,22500], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_556x45_Stanag",nil,100], ["30Rnd_65x39_caseless_mag",nil,100], ["16Rnd_9x21_Mag",nil,150], ["9Rnd_45ACP_Mag",nil,200] ] ]; }; }; }; case "cop_swat": { switch(true) do { case (playerSide != west): {"You are not a cop!"}; case (life_coplevel == 4): {"You aren't a member of the swat!"}; default { ["SWAT Weapon Shop!", [ ["arifle_MX_Black_F",nil,30000], ["arifle_MXC_Black_F",nil,35000], ["arifle_MX_SW_Black_F",nil,50000], ["arifle_MXM_Black_F",nil,60000], ["srifle_DMR_01_F",nil,75000], ["hgun_Rook40_F",nil,2500], ["hgun_ACPC2_F",nil,5000], ["30Rnd_65x39_caseless_mag_Tracer",nil,500], ["100Rnd_65x39_caseless_mag_Tracer",nil,1000], ["30Rnd_65x39_caseless_mag",nil,100] ["16Rnd_9x21_Mag",nil,500], ["30Rnd_556x45_Stanag",nil,300], ["10Rnd_762x51_Mag",nil,1000], ["Rnd_45ACP_Mag",nil,275] ] ]; }; }; };
-
Just downloaded this version, working fine now.
-
just downloaded and tested on a dedicated server, definitely isn't working man, seems pretty messed up to me. In the player menus, we can't give money, neither can we in the bank as there is no scroll menu to select names. I think this is also the case for giving stuff/keys. Hopefully you can sort this out :-) ps, seems stupid, but have you just uploaded the same version that was buggy? maybe you should make sure :p
-
Arma 3 STABLE Server 2.18 "profiling / performance binary" feedback
ross8839 replied to Dwarden's topic in ARMA 3 - SERVERS & ADMINISTRATION
it told me i had to write at least one post to pm someone so this me doing just that. hi.