monkeybrain Posted September 22, 2014 Report Share Posted September 22, 2014 I was playing around with vehicle skins and I have these two vehicles spawning _vehicle_315 = objNull; if (true) then { _this = createVehicle ["AH6X_DZ", [1253.5498, 2398.384, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _vehicle_315 = _this; _this setVehicleInit "this setObjectTexture [0, ""#(rgb,8,8,3)color(0.02,0.2,0.01,1)""];"; _this setPos [1253.5498, 2398.384, 3.8146973e-006]; }; _vehicle_316 = objNull; if (true) then { _this = createVehicle ["SUV_TK_CIV_EP1_DZE4", [1261.9685, 2403.085, -1.9073486e-006], [], 0, "CAN_COLLIDE"]; _vehicle_316 = _this; _this setVehicleInit "this setObjectTexture [0,'#(argb,8,8,3)color(0,0,0,1)'];"; _this setPos [1261.9685, 2403.085, -1.9073486e-006]; }; I've been reading about trying to keep them in the game, as they disappear about 10 seconds after entering them. I tried commenting out //if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); }; but the problem still occurs. Anyone else got vehicles from the editor going? Thanks for the help! Link to comment Share on other sites More sharing options...
0 calamity Posted September 22, 2014 Report Share Posted September 22, 2014 I was playing around with vehicle skins and I have these two vehicles spawning _vehicle_315 = objNull; if (true) then { _this = createVehicle ["AH6X_DZ", [1253.5498, 2398.384, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _vehicle_315 = _this; _this setVehicleInit "this setObjectTexture [0, ""#(rgb,8,8,3)color(0.02,0.2,0.01,1)""];"; _this setPos [1253.5498, 2398.384, 3.8146973e-006]; }; _vehicle_316 = objNull; if (true) then { _this = createVehicle ["SUV_TK_CIV_EP1_DZE4", [1261.9685, 2403.085, -1.9073486e-006], [], 0, "CAN_COLLIDE"]; _vehicle_316 = _this; _this setVehicleInit "this setObjectTexture [0,'#(argb,8,8,3)color(0,0,0,1)'];"; _this setPos [1261.9685, 2403.085, -1.9073486e-006]; }; I've been reading about trying to keep them in the game, as they disappear about 10 seconds after entering them. I tried commenting out //if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); }; but the problem still occurs. Anyone else got vehicles from the editor going? Thanks for the help! Link to comment Share on other sites More sharing options...
0 monkeybrain Posted September 23, 2014 Author Report Share Posted September 23, 2014 NVM i got it going another way Link to comment Share on other sites More sharing options...
Question
monkeybrain
I was playing around with vehicle skins and I have these two vehicles spawning
I've been reading about trying to keep them in the game, as they disappear about 10 seconds after entering them.
I tried commenting out
//if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
but the problem still occurs.
Anyone else got vehicles from the editor going? Thanks for the help!
Link to comment
Share on other sites
2 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