Page MenuHomeFeedback Tracker

Exported Vehicle script gives error
Closed, ResolvedPublic

Description

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.

Details

Legacy ID
2766469276
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Virtual Arsenal
Steps To Reproduce

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

Additional Information

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

AntiAlligat3r edited Additional Information. (Show Details)
AntiAlligat3r set Category to Virtual Arsenal.
AntiAlligat3r set Reproducibility to Always.
AntiAlligat3r set Severity to None.
AntiAlligat3r set Resolution to No Bug.
AntiAlligat3r set Legacy ID to 2766469276.May 8 2016, 11:44 AM
AntiAlligat3r edited a custom field.
AntiAlligat3r added a subscriber: AntiAlligat3r.

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

Adam added a comment.May 14 2015, 1:05 PM

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