So using the Wicked AI system script(s) that I have installed inside of my server files i'm trying to create a custom weapon Cache that spawns in my own predifined items. I'm succuesfull in getting the weapon caches to spawn, and by default gear spawns in them because they are using the "ExtraLargeGunBox.sqf" to fill loot inside of them everytime one of them is created. I have modied the script where the gun boxes are created so instead of the code calling "ExtraLargeGunBox.sqf" each time one is created, I call a custom created sqf file by me that fills each box with unique gear to that box. Here is "StaticAmmoBoxes.sqf" where I am creating the boxes at their locations and calloing seperate scripts for each to fill them with gear;
/* Add ammmo boxes to static locations on map and fills it with loot from missionCfg.sqf
creates a ammo box at [0,0,0] then fills it
_box = createVehicle ["BAF_VehicleBox",[0,0,0], [], 0, "CAN_COLLIDE"];
[_box] call spawn_ammo_box;
creates a 2nd ammo box at [1,1,1] then fills it
_box2 = createVehicle ["BAF_VehicleBox",[1,1,1], [], 0, "CAN_COLLIDE"];
[_box2] call spawn_ammo_box;
add custom ammo boxes below this line
*/
/* SECTOR B CUSTOM BOXES */
_box = createVehicle ["BAF_VehicleBox",[6643.02,14211.9,0.00164795], [], 0, "CAN_COLLIDE"]; /*SECTOR B WEAPON SUPPLY BOX*/
[_box] call Sector_B_Weapons;
As you can see I call Sector_B_Weapons, inside of that script i have;
But for some reason when I go in-game the box instead spawns 50x M240 Rnds and 50x M249 Rnds. In matter of fact these same two items spawn in every custom box that I create and fill with custom loot on the map, is there a reason for this and could anyone have any idea as of what I am doing wrong here?
Question
Link
So using the Wicked AI system script(s) that I have installed inside of my server files i'm trying to create a custom weapon Cache that spawns in my own predifined items. I'm succuesfull in getting the weapon caches to spawn, and by default gear spawns in them because they are using the "ExtraLargeGunBox.sqf" to fill loot inside of them everytime one of them is created. I have modied the script where the gun boxes are created so instead of the code calling "ExtraLargeGunBox.sqf" each time one is created, I call a custom created sqf file by me that fills each box with unique gear to that box. Here is "StaticAmmoBoxes.sqf" where I am creating the boxes at their locations and calloing seperate scripts for each to fill them with gear;
As you can see I call Sector_B_Weapons, inside of that script i have;
But for some reason when I go in-game the box instead spawns 50x M240 Rnds and 50x M249 Rnds. In matter of fact these same two items spawn in every custom box that I create and fill with custom loot on the map, is there a reason for this and could anyone have any idea as of what I am doing wrong here?
Thanks.
Link to comment
Share on other sites
5 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