Jump to content
  • 0

Jets disapear when players get in.


Thug

Question

Have a problem. I watched a video back in 1.0.4.2 called:
Epoch: Tutorial - Adding custom vehicles/jets and removing weapons by Raymix.
I was using the jets until the update 1.0.5.1 and at that time players getting into the jets got killed or the plane just disppeared.
 
So i  let some time go by before i would try to get some help. We have 6 servers and finally got catch up.
I contacted Raymix and asked if he knew what was going on. He told me to try the following and see if that would work:
 
you will need to add code line inside init line to assign ID.
Works like this:
_this setVariable ["ObjectID", 1, true];_this setVariable ["ObjectUID", 1, true];What happens is cleanup code looks for hacked vehicles that were spawned in and do not exist within whitelisted vehicles (like buildable objects) in variables.sqf You could whitelist them, but that's a bad idea. Since that also allows hackers to spawn them.
But if you create your own plane in 3D editor and assign an ID to it, you don't need to whitelist anything anymore, it will be a legit vehicle.
 
I tried  the following and they still disappear, i didn't  have a non admin on to see if it would kill them

if (isServer) then {

 
_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["L39_TK_EP1", [14573.688, 16697.984, -1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setDir 46.61084;
  _this setVariable ["ObjectID", 1, true];
  _this setVariable ["ObjectUID", 1, true];
  _this setVehicleArmor 0.75039393;
  _this setFuel 0.50078815;
  _this setVehicleAmmo 0;
  _this setVehicleInit "this removeWeapon ""GSh23L_L39""; this removeWeapon ""57mmLauncher"";";
  _this setPos [14573.688, 16697.984, -1.1444092e-005];
};
 
_vehicle_6 = objNull;
if (true) then
{
  _this = createVehicle ["Su25_CDF", [14530.488, 16749.627, -0.27939826], [], 0, "CAN_COLLIDE"];
  _vehicle_6 = _this;
  _this setDir -307.75769;
  _this setVariable ["ObjectID", 1, true];
  _this setVariable ["ObjectUID", 1, true];
  _this setVehicleArmor 0.75039423;
  _this setFuel 0.49553338;
  _this setVehicleAmmo 0;
  _this setVehicleInit "this removeWeapon ""S8Launcher""; this removeWeapon ""R73Launcher_2""; this removeWeapon ""GSh301""; this removeWeapon ""AirBombLauncher"";";
  _this setPos [14530.488, 16749.627, -0.27939826];
};
 
_vehicle_9 = objNull;
if (true) then
{
  _this = createVehicle ["A10_US_EP1", [14553.075, 16721.111, -0.034083627], [], 0, "CAN_COLLIDE"];
  _vehicle_9 = _this;
  _this setDir 48.706741;
  _this setVariable ["ObjectID", 1, true];
  _this setVariable ["ObjectUID", 1, true];
  _this setVehicleArmor 0.72149235;
  _this setFuel 0.48765102;
  _this setVehicleAmmo 0;
  _this setVehicleInit "this removeWeapon ""BombLauncherA10""; this removeWeapon ""FFARLauncher_14""; this removeWeapon ""GAU8""; this removeWeapon ""MaverickLauncher""; this removeWeapon ""SidewinderLaucher_AH1Z"";";
  _this setPos [14553.075, 16721.111, -0.034083627];
 
};
 
};

 
Anyone have an ideal?
 
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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...