[CS-FA] Dimension Posted November 23, 2020 Share Posted November 23, 2020 I've looked through hours of videos & looks everywhere online, and I cannot find any source that can help me figuring out how to store Tracked Tanks and other vehicles in the Garage on Altis Life, as my Server is Militarized Life Server. Can someone help me with this issue? Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted July 18, 2021 Share Posted July 18, 2021 I am having the same problem. Anybody know this one? Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted July 18, 2021 Share Posted July 18, 2021 Should be in your storeVehicle, there is a line of code which checks for what type of object. (CfgVehicles) _nearVehicles = nearestObjects[getPos (_this select 0),["Car","Air","Ship"],30] I believe adding "Tank" to this array will fix this. Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted July 25, 2021 Share Posted July 25, 2021 Hello thanks for the response, this does allow me to put the tank in the garage, but it won't take it out. I have been searching pretty hard for the other spot. Would you know where I need to change the script to be able to fetch the vehicle? It's not in any spot I can find anywhere. thanks for the help in advance Quote Link to comment Share on other sites More sharing options...
KillerAussie Posted August 9, 2021 Share Posted August 9, 2021 On 7/25/2021 at 10:37 AM, Dirk Verite said: Would you know where I need to change the script to be able to fetch the vehicle? life_server/Functions/fn_spawnVehicle.sqf Also are you getting any errors? Is the vehicle showing in the garage? Whats actually happening? Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 9, 2021 Share Posted August 9, 2021 I changed the line in storevehicle as mentioned above and now my tank can go into the garage. But it doesn't show up in the list after I store it. before I added tanks to the line I could not get it into the garage. There are no script errors that come up when I store it, I just added a tank and tried to store it now. It went into the garage and then nothing. No error and not showing up in garage but went in. Thanks Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 9, 2021 Share Posted August 9, 2021 I saw another spot that didn't have "Tank". Line 62 in fn_spawnVehicle. Tried putting it there too and nothing new. Still doesn't show up in garage and no errors. Thanks in advance for the help. Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 14, 2021 Share Posted August 14, 2021 this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""cop_car_1""; life_garage_type = ""Car""; },"""",0,false,false,"""",'playerSide isEqualTo west',5]; You see how the framework handles different garages? Each garage is handled for AIR, CAR and SHIP. The simplest solution (also kinda wacky), you can add a separate addAction, where you change life_garage_type and [getPlayerUID player,playerSide,""Car"",player] to TANK Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 15, 2021 Share Posted August 15, 2021 (edited) Thanks AngryHerring, I have looked all over, I get what you have put there. But what file exactly would I be changing that in? Thanks Edited August 15, 2021 by Dirk Verite sent to early Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 15, 2021 Share Posted August 15, 2021 In your mission.sqm (in the editor, on the "shops/npc's", called attributes). Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 15, 2021 Share Posted August 15, 2021 So add this to the bottom and change the item number to the next one? You can see were I changed a Car to Tank in the first part of the init/ class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 16, 2021 Share Posted August 16, 2021 (edited) PS: It is easier to do this in the editor than in the mission.sqm by code. Caution: This edit will only happen on this NPC (at cords 3839, 13267), and you will have to replicate this on other garages if you want the ability to open the garage for tanks there as well. Editing the existing INIT is the way to go, (you dont need to add a whole new entry). That will make a lot of fuss. Also, if you replace the existing addAction (from "CAR" to tank) the garage will be overridden (it will now only load tanks into the list). Another separate addAction for the TANKS' garage is needed. We will do this by copying the very same command for normal garages, and place it in the same init line, within the quotes (") and make a few modifications. Step-by-step: I've added a separate addAction command (named Tank garage) in the init = "...";. class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5]; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Here is the standalone code: this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; When replicating this command to other garages placed on the map, it is important to change life_garage_sp (the spawn point for the car). Quck tip for this: use the existing SP for normal garages. How would this look in game? when you scroll on a garage you will have two options, one for Garage, and one for Tank Garage. hope this works. Useful link: addAction command (Bohemia wiki) Edited August 16, 2021 by AngryHerring ッ ®™ should be easier to read Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 17, 2021 Share Posted August 17, 2021 On 8/16/2021 at 5:01 AM, AngryHerring ッ ®™ said: PS: It is easier to do this in the editor than in the mission.sqm by code. Caution: This edit will only happen on this NPC (at cords 3839, 13267), and you will have to replicate this on other garages if you want the ability to open the garage for tanks there as well. Editing the existing INIT is the way to go, (you dont need to add a whole new entry). That will make a lot of fuss. Also, if you replace the existing addAction (from "CAR" to tank) the garage will be overridden (it will now only load tanks into the list). Another separate addAction for the TANKS' garage is needed. We will do this by copying the very same command for normal garages, and place it in the same init line, within the quotes (") and make a few modifications. Step-by-step: I've added a separate addAction command (named Tank garage) in the init = "...";. class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5]; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Here is the standalone code: this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; When replicating this command to other garages placed on the map, it is important to change life_garage_sp (the spawn point for the car). Quck tip for this: use the existing SP for normal garages. How would this look in game? when you scroll on a garage you will have two options, one for Garage, and one for Tank Garage. hope this works. Useful link: addAction command (Bohemia wiki) Hey there thanks for the help. I seem to be getting this error. Not sure how to fix it? 12:07:27 Error context ddAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; 12:07:27 ErrorMessage: File mpmissions\__cur_mp.Altis\mission.sqm, line 36196: '/Mission/Entities/Item841/Entities/Item82/Attributes.this': 'a' encountered instead of '=' 12:07:27 Application terminated intentionally Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 17, 2021 Share Posted August 17, 2021 show me Item (82 and 83) from your mission.sqm Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 17, 2021 Share Posted August 17, 2021 (edited) I reverted back to the older mission.sqm. Here it is before I put that line in. class Item82 { dataType="Object"; class PositionInfo { position[]={14473.48,19.166288,17753.941}; angles[]={6.2765183,2.6579969,0.022654373}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_3""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5];"; disableSimulation=1; }; id=1027; type="C_man_1"; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male01GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=0.95999998; }; }; }; nAttributes=3; }; }; class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Here it is after class Item82 { dataType="Object"; class PositionInfo { position[]={14473.48,19.166288,17753.941}; angles[]={6.2765183,2.6579969,0.022654373}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_3""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5];"; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1027; type="C_man_1"; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male01GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=0.95999998; }; }; }; nAttributes=3; }; }; class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5];"; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Edited August 17, 2021 by Dirk Verite Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 26, 2021 Share Posted August 26, 2021 class Item82 { dataType="Object"; class PositionInfo { position[]={14473.48,19.166288,17753.941}; angles[]={6.2765183,2.6579969,0.022654373}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_3""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5]; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1027; type="C_man_1"; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male01GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=0.95999998; }; }; }; nAttributes=3; }; }; class Item83 { dataType="Object"; class PositionInfo { position[]={3739.4629,12.758859,13267.433}; angles[]={0.022654373,0.90746647,6.2618575}; }; side="Civilian"; flags=4; class Attributes { skill=0.60000002; init="this enableSimulation false; this allowDamage false; this addAction[localize""STR_Garage_Title"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Car"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Car""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5]; this addAction[localize""STR_MAR_Store_vehicle_in_Garage"",life_fnc_storeVehicle,"""",0,false,false,"""",'!life_garage_store',5]; this addAction[""Tank Garage"", { if (life_HC_isActive) then { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""HC_fnc_getVehicles"",HC_Life]; } else { [getPlayerUID player,playerSide,""Tank"",player] remoteExecCall [""TON_fnc_getVehicles"",2];}; life_garage_type = ""Tank""; createDialog ""Life_impound_menu""; disableSerialization; ctrlSetText[2802,""Fetching Vehicles....""]; life_garage_sp = ""car_g_1""; },"""",1.5,true,true,"""",""true"",5];"; disableSimulation=1; }; id=1028; type="C_man_1"; atlOffset=-1.9073486e-006; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male02GRE"; }; }; }; class Attribute2 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=1.02; }; }; }; nAttributes=3; }; }; Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 29, 2021 Share Posted August 29, 2021 Hello, Well I got the scroll menu to show up at the garage but still can only put them in but not take them out. They don't show up in that garage neither. But at least the menu is there. There is no errors that come up either. Thanks man for the time. Not sure why they make this so difficult. Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 30, 2021 Share Posted August 30, 2021 Not gonna give up this easy., we'll get this to work. Inside your database, vehicle tab (data), what is the type (for the tank)? type should be number 5 on that row. Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 30, 2021 Share Posted August 30, 2021 Would it have to do with this file? My database? my mission file? Help? fn_vehicleCreate.sqf Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 30, 2021 Share Posted August 30, 2021 Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 30, 2021 Share Posted August 30, 2021 ok Cool, it says true. Funny cars say car, heli and jet say Air, Tanks say true... Should I put everywhere it says tanks to true? Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 31, 2021 Share Posted August 31, 2021 (edited) Show me your fn_vehicleCreate.sqf you might need to add: case (_vehicle isKindOf "Tank"): {"Tank"}; Under the case for ships after this, try purchasing and storing a tank, then open the garage Edited August 31, 2021 by AngryHerring ッ ®™ Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 31, 2021 Share Posted August 31, 2021 yeah dude that was the one I sent a few posts up. I thought there should be a line there for Tank. So here it is with the added Tank line. YAY we got progress the Tank now goes in and out of the garage and shows up in the Tank garage. But it's not in front of the garage, and I have no idea where it spawns. How do I make it spawn in front of the guy with the garage? Here is the file after I put in that linefn_vehicleCreate.sqf Quote Link to comment Share on other sites More sharing options...
AngryHerring ッ ®™ Posted August 31, 2021 Share Posted August 31, 2021 (edited) Ahhh, might be a wrong spawnpoint in your mission.sqm. Go check if both match up (car and tank) (the addAction command for car and tank i think item82 (addaction tank) has the wrong spawnpoint Edited August 31, 2021 by AngryHerring ッ ®™ Quote Link to comment Share on other sites More sharing options...
Dirk Verite Posted August 31, 2021 Share Posted August 31, 2021 I looked at that line you put in quite a few times. Can't see any coordinates on it? Looked at the rest of item 82 and just can't see where I put the coordinates, or check the car ones for that matter. Thanks again man! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.