![](https://forums.bohemia.net/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://secure.gravatar.com/avatar/d19de7f6fa2276be33809b61347ec9fc?d=https://forums.bohemia.net/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
hydrobull3t
Member-
Content Count
167 -
Joined
-
Last visited
-
Medals
Community Reputation
13 GoodAbout hydrobull3t
-
Rank
Sergeant
Profile Information
-
Gender
Male
Contact Methods
-
Steam url id
HydroBull3T
Recent Profile Visitors
-
CatBook-Yi23332 started following hydrobull3t
-
params Can't make the mission parameters to work properly
hydrobull3t posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello guys! Not long ago I had posted a topic with a problem in my loadout. I have tried long ago to fix it, but I forgot all of the scripting I have learned so there wasn't much to do... Unit today I had tried again as I am currently in a vacation from my military services (got injured). Well, I figured out that the loadout script and everything is ok, but the problem is much more small than I thought it is. I am using Mission Parameters to choose between Night or Day loadout, Add or Remove NVG according to mission time, as well as Silencer and Map Nav Aids. As the updates started to come the code was outdated, But I have tried couple of time to fix it with no luck.. If someone done it or Know how to fix it, Please reply here, As I want to regroup my old friends to start play again in this awesome MilSim. Loadout Description RPT Log fn_processParamsArray Huge Thanks Guys!!! -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Bump, The issue hasn't resolved.. -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello again, I have tried your suggestion without luck :( -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks again for the help, So as I understand, 1. Edit the client.sqf with the script you have added 2. the loadout_bluefor.sqf is ok, so no need to touch 3. rename in game the var name of each character to something else but that will include the name after FNC_X.. for example. Loadout_bluefor.sqf has FNC_SL So i rename in game the character to Command_SL_1? -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you for your reply, Sorry for my mistakes.. So as I understand. 1. need to create initPlayerLocal.sqf in root mission file, and put [] call compile preprocessFileLineNumbers "f\gear_setup\loadouts_bluefor.sqf"; [] call compile preprocessFileLineNumbers "f\gear_setup\client.sqf"; in it. 2. loadout_bluefor.sqf, rename each role to something like Command_SL_1 3. Fix the client.sqf with switch (faction player) do { case "OPF_F": { }; case "BLUF_F": { switch (str player) do { case "Command_SL_1": { [player] call fnc_sl }; case "Alpha_SL_1": { [player] call fnc_sl }; case "Bravo_SL_1": { [player] call fnc_sl }; default { [player] call fnc_op }; }; }; default {}; }; and continue to add the names of the Roles and The variables names. -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So something Like that? /*scripts\client.sqf*/ if !(isDedicated) then { diag_log format ["client :1"]; waitUntil { !IsNull Player }; if (local player) then { waitUntil { time > 1 }; // Factions diag_log format ["client :%1 %2", faction player, time]; switch (faction player) do { case "OPF_F": { }; case "BLUF_F": { switch (str player) do { case "MHQ_Commander": { [player] call fnc_sl }; case "MHQ_Medic": { [player] call fnc_med }; case "MHQ_UAVO": { [player] call fnc_uavo }; default { [player] call fnc_op }; }; [] call compile preprocessFileLineNumbers "f\gear_setup\loadouts_bluefor.sqf"; [] call compile preprocessFileLineNumbers "f\gear_setup\client.sqf"; }; default {}; }; -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the reply, ohhh, I see.. If I may ask, How is your script will know what to call? I need some sort of function that will order to get the loadout from like this: [] call compile preprocessFile "f\gear_setup\loadouts_bluefor.sqf";}; // Bluefor Set ?? Or Im not getting it 0-0 -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If I choose this (looks easier) Than how for example, the "case "MHQ_Commander": { [player] call fnc_sl };" will know what loadout to call? I need some sort of function that will order to get the loadout from like this: [] call compile preprocessFile "f\gear_setup\loadouts_bluefor.sqf";}; // Bluefor Set ?? switch (faction player) do { case "OPF_F": { }; case "BLUF_F": { switch (str player) do { case "MHQ_Commander": { [player] call fnc_sl }; case "MHQ_Medic": { [player] call fnc_med }; case "MHQ_UAVO": { [player] call fnc_uavo }; default { [player] call fnc_op }; }; }; default {}; }; -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the reply, I left it while it worked (year ago) and didn't touched it... Can you show me please example of (str player) As im trying to figure things on the go (I don't remember lot of stuff) -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Its my old Script, somehow it worked till now 0-0 -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Changed the script to this: /*scripts\client.sqf*/ if !(isDedicated) then { diag_log format ["client :1"]; waitUntil { !IsNull Player }; if (local player) then { waitUntil { time > 1 }; // Factions diag_log format ["client :%1 %2", faction player, time]; _name = vehicleVarName player; _arr = _name splitString "_"; _arr params ["_group","_class","_num"]; [player] call (missionNamespace getVariable [format["FNC_%1",_class],{ diag_log format ["%1 - %2 : Loadout not found", player, vehicleVarName player]; }]); case MHQ_Commander: {[MHQ_Commander] call FNC_SL;}; case MHQ_Medic: {[MHQ_Medic] call FNC_MED;}; case MHQ_UAVO: {[MHQ_UAVO] call FNC_UAVO;}; case MHQ_Engineer: {[MHQ_Engineer] call FNC_EOD;}; case Alpha_SL: {[Alpha_SL] call FNC_SL;}; case Alpha_TL: {[Alpha_TL] call FNC_TL;}; case Alpha_Marksman: {[Alpha_Marksman] call FNC_MARK;}; case Alpha_EOD: {[Alpha_EOD] call FNC_EOD;}; case Alpha_Medic: {[Alpha_Medic] call FNC_MED;}; case Alpha_AT: {[Alpha_AT] call FNC_AT;}; case Alpha_AR: {[Alpha_AR] call FNC_AR;}; case Alpha_Operator: {[Alpha_Operator] call FNC_OP;}; case Bravo_SL: {[Bravo_SL] call FNC_SL;}; case Bravo_TL: {[Bravo_TL] call FNC_TL;}; case Bravo_Marksman: {[Bravo_Marksman] call FNC_MARK;}; case Bravo_EOD: {[Bravo_EOD] call FNC_EOD;}; case Bravo_Medic: {[Bravo_Medic] call FNC_MED;}; case Bravo_AT: {[Bravo_AT] call FNC_AT;}; case Bravo_AR: {[Bravo_AR] call FNC_AR;}; case Bravo_Operator: {[Bravo_Operator] call FNC_OP;}; case Charlie_Sniper: {[Charlie_Sniper] call FNC_SNIP;}; case Charlie_Spotter: {[Charlie_Spotter] call FNC_SPOT;}; case Charlie_Operator: {[Charlie_Operator] call FNC_OP;}; case Charlie_Sniper1: {[Charlie_Sniper1] call FNC_SNIP;}; case Charlie_Spotter1: {[Charlie_Spotter1] call FNC_SPOT;}; case Charlie_Operator1: {[Charlie_Operator1] call FNC_OP;}; case AF_Pilot: {[AF_Pilot] call FNC_AFP;}; case AF_Pilot1: {[AF_Pilot1] call FNC_AFP;}; case AF_Pilot2: {[AF_Pilot2] call FNC_AFP;}; case AF_TL: {[AF_TL] call FNC_AFTL;}; case AF_JTAC: {[AF_JTAC] call FNC_AFJ;}; case AF_Medic: {[AF_Medic] call FNC_AFMED;}; }; }; }; Thank you for your reply! And to check for example the MHQ Commander: I have assigned him the FNC_SL and as in the loadout file. Also named him in game as MHQ_Commander.. Still not working.. -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you for your reply. Its really funny and true, if you didn't practice in something for long time, you forget it although you really like it. Unfortunately I don't remember how to do all of that stuff.. Perhaps Ill wait to BI Wiki to come back, and try to google your suggestion. -
Can't make the loadout to start
hydrobull3t replied to hydrobull3t's topic in ARMA 3 - MISSION EDITING & SCRIPTING
First of all, Thank you very much for the help. Unfortunately, The suggestion with (vehicleVarName player) Didn't Worked. Maybe its because the original code is outdated? (I haven't scripted for about Year). Also, I don't remember how the array setup needed to be done, And the BI Wiki is down for Maintenance :( :(. Do you have a suggestion? -
Hey Guys, First of all, Thank you for wasting time to read this issue, Im really appreciate your effort for trying to help me and to others. I am trying to create a template with a costume loadout, and I have encountered in issue. The loadout won't start, I have tried to fix it by myself, but I can't find the issue somewhy. I will Add to here the links for the Class define, Loadout Script, And RPT Log. (I know I can make it simple through EDEN. But I want to add some functions like Parameters to the Loadout.) RPT LogClass Define / Clients Loadout Script Thank You!
-
Sorry, Wrong Forum