Jump to content
soldier9945

Custom Respawn Inventory Menu per player (dynamically load player's saved Virtual Arsenal loadouts)

Recommended Posts

I think you are confused.

My first script in this thread pulls all your arsenal saves into the menuInventory screen.

The second uses the respawn menuInventory roles and up dates each role independently for each player based on changes they make whilst playing as that role, when the player choose the same role they will automatically get their updated loadout for that role. This is not mission role as in the role( unit ) you pick in the lobby but role from respawn inventory screen you choose.

 

3 hours ago, Alleged Accomplice said:

You make sure you click save loadout in the multiplayer section of you missions attributes drop down while editing.

This is not a vanilla Arma 3 feature and instead is added by 3DEN_Enhanced. This feature already does exactly the same as the code you are suggesting to make in the initPlayerLocal/onPlayerRespawn.

 

3 hours ago, Alleged Accomplice said:

It will throw an error that is meaningless, I think it is because the menu inventory has no other inventories to choose from and the inventory shown is wrong.

The error is because you are using the respawn template of menuInventory, yet are creating no menu inventories for the system to use.

Share this post


Link to post
Share on other sites
12 hours ago, Larrow said:

I think you are confused.

My first script in this thread pulls all your arsenal saves into the menuInventory screen.

The second uses the respawn menuInventory roles and up dates each role independently for each player based on changes they make whilst playing as that role, when the player choose the same role they will automatically get their updated loadout for that role. This is not mission role as in the role( unit ) you pick in the lobby but role from respawn inventory screen you choose.

 

This is not a vanilla Arma 3 feature and instead is added by 3DEN_Enhanced. This feature already does exactly the same as the code you are suggesting to make in the initPlayerLocal/onPlayerRespawn.

 

The error is because you are using the respawn template of menuInventory, yet are creating no menu inventories for the system to use.

Well I hadn't slept when I wrote that so some confusion and I'm drinking now but the thing I should have said is this as to the why I do it this way. No arsenal in game. I put the weapons I want in the battle in many loadouts to choose from. In WWII scenarios you not only do not want modern stuff, you do not want late war in early or mid war.  SayUnkl kept the arsenal in game. White listying and black listing takes too long.

 

Perhaps you could explain to me how the hell I was screwing up by just ticking the save loadouts thing in the multiplayer drop down but the loadouts were never saved. I'm not being an ass here, I clicked many times but it never saved any loadout until I created those 2 files. Maybe it was added but just doesn't work right yet?

 

I knew you'd know why it threw the error, I wasn't sure as to the why, I just knew it didn't hurt anything when testing it.

 

If I could get the loadouts created in the editor arsenal with a menu inventory to choose another loadout without going to lobby without arsenal in game I would do it. I'm an old guy who barely understands most of this and I'm an old guy who hits the machine computers at work to try to force them to do what I want. It works 60% of the time LOL.

 

When I create just fun to mess around with coop scenarios to screw around with, yeah I use the arsenal in game, who doesn't but when I create a battle to publish I don't. I try to balance it in a way I want it.

 

Share this post


Link to post
Share on other sites

Hey guys really sorry to post on such an old thread, but i cant get Larrows solution on post 3 to work anymore. Had this thread on my faves for years and always used this method, took a break from arma and now either it dosent work or im messing something up (more likely). I did try just a blank map with description and initPlayerLocal, but i get errors and it doses not show the respawn menu, instead shows the map, with my guy in the corner, then moves me to spawn point with a random VA loadout 😞

 

Any ideas?

Share this post


Link to post
Share on other sites

It seems there are (new?) incompatibilities between respawn parameters.

At least the respawnTemplates[] in description.ext can't run like this.

 

To make it work, I deleted all respawn things in description.ext and set all parameters in editor attributes multiplayer. But the respawn on death position doesn't work with this script (initPlayerLocal.sqf). I had to create a respawn position, to add the select respawn position in the menu.

Then the respawn on start shows the respawn position and the loadout menu with the saved arsenal inventories.

 

Note: I don't use this kind of script because the listing shows all inventories saved in profileNameSpace but, if any mod is missing (i.e. you saved an IFA3 or SOG equipment but you are not running a new mission with the addon/DLC... the menu line (name of your saved config) leads to incomplete or empty loadout)

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks so much, I did what you said and it works 😄

 

Didnt put anything for it into description, and just used the code in InitPlayerLocal and onPlayerKilled. 
Then selected "resapwn on custom position" and checked "Select Respawn Loadout" and  "Select Respawn Position" 

Thanks again that was the last little QOL thing I needed in my mission 🙂

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×