![arma 3 virtual arsenal script arma 3 virtual arsenal script](https://i.imgur.com/Lz7Z7Ad.jpg)
You'll need to add that file to run in your init.sqf, something likeĬall compile preprocessFileLineNumbers "TraderCFG\Trader.sqf"
#Arma 3 virtual arsenal script code
Replace all the code inside "// Objects //" with the object code you got in step 3, and make the any occurrences of "trader123" match what you name yours. array in format: "class", price, amount _this setVectorDirAndUp ,] īut you won't want to use that, it does need a name Variable though, like "trader123" shown there (the rest of the code will assume you use trader123, or change it in any occurrences).Ĭreate a SQF somewhere in the mission file, mine will be TraderCFG\Trader.sqf and add this code to it _item1 = createVehicle ,0,"CAN_COLLIDE"] Now you are going to need an object in SQF code at wherever you want the shop to be accessed, something like Get the "VASS" folder from that Github and place it at the root of your mission file.Īdd to CfgFunctions (Default for epoch would be in mission file \epoch_config\Configs\CfgFunctions.hpp) (Instructions for doing so are at the top of the readme in the repo.) I spent some time getting Virtual Arsenal Shop System (VASS) working in epoch recently and figured I'd share that (though may not be the best way to do this, as it's my first time really making anything for arma or epoch).ĮDIT:I created a fork on github with basically all of the below changes, so you only need to merge description.ext, init.sqf and CfgFunctions.hpp.