Everytime I try and customise a vehicle to use in the field using the virtual garage I get the error "Local variable in Global Space. It would be nice if you can fix this before the Marksmen DLC is released.
Description
Details
- Legacy ID
- 2766469276
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Virtual Arsenal
Step 1. Start up Virtual arsenal on the Dev branch
Step 2. Switch to Virtual Garage
Step 3. Click wheeled
Step 4. Select Offroad
Step 5. Pimp out the Offroad (Unarmed) vehicle (make it police for example)
Step 6. Click on export
Step 7. Close Virtual Arsenal/Garage
Step 8. Open Editor and start Altis or Stratis
Step 9. Place a player
Step10. Place an empty offroad vehicle (Civie or FIA/Unarmed)
Step11. Paste the exported code into the Initalization block
Step12. Say WTF is going on
Here is the fix There was Underscore by the veh
comment "Related vehicle classes:";
comment "C_Offroad_01_F";
comment "B_G_Offroad_01_F";
veh = createVehicle ["B_G_Offroad_01_F",position player,[],0,"NONE"];
[
veh,
["guerilla_06",1],
[
"HideBackpacks", 0,
"HideBumper2", 0,
"HideConstruction", 0,
"Proxy", 0,
"Destruct", 0
]
] call BIS_fnc_initVehicle;
Event Timeline
comment "Related vehicle classes:";
comment "C_Offroad_01_F";
comment "B_G_Offroad_01_F";
veh = createVehicle ["B_G_Offroad_01_F",position player,[],0,"NONE"];
[
veh,
["guerilla_06",1],
[
"HideBackpacks", 0, "HideBumper2", 0, "HideConstruction", 0, "hidePolice", 0, "BeaconsStart", 1, "Proxy", 0, "Destruct", 0
]
] call BIS_fnc_initVehicle;
for the police lights included and turned on
Hello, this is not an issue since the export from Virtual Garage is not meant to be used in init field but used as a script.
Thank you for your feedback