A simple question about backpacks, for a custom loadout. I have made a simple addon to make custom loadouts in server side, I pass the player as variable, and then the server does all the job. Everything is working and the player gets its custom loadout, everything but the backpack. This is my code:
_Player = _this select 0; //I pass the player as a parameter in a publicvariableserver;
//rest of the layout code here
/Backpac Code
diag_log "backpack selection";
_BackPacks = ["B_AssaultPack_ocamo","B_AssaultPack_rgr"];
_unitBP = _BackPacks select floor random count _BackPacks;
_Player addBackpack _unitBP;
diag_log "Backpack added";
The thing is that in the rpt file I get both messages, but the backpack is not added to the player. Any clue what can be happening? My best guess right now is related to the AH, but I m not sure.
Question
Galian
The thing is that in the rpt file I get both messages, but the backpack is not added to the player. Any clue what can be happening? My best guess right now is related to the AH, but I m not sure.
Thanks for your help
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now