Jump to content

How to stop users from knocking down the ATM


Recommended Posts

Ok I found a way to stop users from knocking down the ATMs and other objects.

 

You can do this for any object.

 

Open up banks.sqf in the .pbo file

 

I am not really going into detail on how about doing this as it would take a while to explain, but you can get the general idea from my banks.sqf

_vehicle_1 = objNull; // Stary
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[6324.71, 7787, 0.00143433],[],0,"CAN_COLLIDE"];
  _this setDir 244.89;
  _vehicle_1 = createVehicle ["Infostand_2_EP1", [6324.71, 7787, 0.00143433], [], 0, "CAN_COLLIDE"];
  _vehicle_1 attachTo [_this,[0,0,0.6]];
  _this = _vehicle_1; 
};

_vehicle_2 = objNull; //Bash
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[4057.35, 11662.7, 0.000128174],[],0,"CAN_COLLIDE"];
  _this setDir 207.046;
  _vehicle_2 = createVehicle ["Infostand_2_EP1", [4057.35, 11662.7, 0.000128174], [], 0, "CAN_COLLIDE"];
  _vehicle_2 attachTo [_this,[0,0,0.9]];
  _this = _vehicle_2; 
};

_vehicle_3 = objNull; //Klen
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[11461, 11348.6, 0.00143433],[],0,"CAN_COLLIDE"];
  _this setDir 132.225;
  _vehicle_3 = createVehicle ["Infostand_2_EP1", [11461, 11348.6, 0.00143433], [], 0, "CAN_COLLIDE"];
  _vehicle_3 attachTo [_this,[0,0,0.6]];
  _this = _vehicle_3;
};

_vehicle_4 = objNull; //Air
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[12063.9, 12636, 0.0584259],[],0,"CAN_COLLIDE"];
  _this setDir 190.5211;
  _vehicle_4 = createVehicle ["Infostand_2_EP1", [12063.9, 12636, 0.0584259], [], 0, "CAN_COLLIDE"];
  _vehicle_4 attachTo [_this,[0,0,0.6]];
  _this = _vehicle_4;
};

_vehicle_5 = objNull; //Hero
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[12944.4, 12766.1, 0.00157166],[],0,"CAN_COLLIDE"];
  _this setDir 4.05031;
  _vehicle_5 = createVehicle ["Infostand_2_EP1", [12944.4, 12766.1, 0.00157166], [], 0, "CAN_COLLIDE"];
  _vehicle_5 attachTo [_this,[0,0,0.6]];
  _this = _vehicle_5;
};

_vehicle_23102 = objNull; //Bandit
if (true) then
{
  _this = createVehicle ["HeliHEmpty",[1623.8, 7800.66, 0.00140381],[],0,"CAN_COLLIDE"];
  _this setDir -239.602;
  _vehicle_6 = createVehicle ["Infostand_2_EP1", [1623.8, 7800.66, 0.00140381], [], 0, "CAN_COLLIDE"];
  _vehicle_6 attachTo [_this,[0,0,0.6]];
  _this = _vehicle_6; 
};  

Link to comment
Share on other sites

  • 2 weeks later...

_this enableSimulation false;

 

does magic to

So I installed this, jumped in an SUV to test, galloped at the "infostand" and bam it's down (20 meters away from it's usual location).

I did some more testing (at other traders) they are like Rocky Balboa, keep coming back up when you beat em good. I think I hit the first one at a sweet angle or something?

 

Anyhow - this has been an improvement for us as it protects the poor infostand most of the time from attacks whereas our previous protection rate was zero.

 

Thanks for sharing.

Link to comment
Share on other sites

So I installed this, jumped in an SUV to test, galloped at the "infostand" and bam it's down (20 meters away from it's usual location).

I did some more testing (at other traders) they are like Rocky Balboa, keep coming back up when you beat em good. I think I hit the first one at a sweet angle or something?

 

Anyhow - this has been an improvement for us as it protects the poor infostand most of the time from attacks whereas our previous protection rate was zero.

 

Thanks for sharing.

Well here is the good thing about the enablesimulation it only does it locally.

Meaning if you knock it down, it will only be knocked down for you no other players will see it knocked down.

Link to comment
Share on other sites

Well here is the good thing about the enablesimulation it only does it locally.

Meaning if you knock it down, it will only be knocked down for you no other players will see it knocked down.

Excellent. It's better than I could come up with. Troublemakers will waste their time lol

Link to comment
Share on other sites

  • 5 months later...

can anyone elaborate on where exactly to add
_this setsimulation false


_vehicle_187 = objNull;
if (true) then
{
  _this = createVehicle ["FoldTable", [6221.2905, 4625.8779, -0.079633094], [], 0, "CAN_COLLIDE"];
  _vehicle_187 = _this;
  _this setDir 118.5292;
  _this setPos [6221.2905, 4625.8779, -0.079633094];
  _this enableSimulation false;
};

like so?

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...