Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
Tonic

Aircrane

ошибка спамит рпт- 

 

19:12:50 Bad conversion: array
19:12:50 Error in expression <opperz = _chopperpos select 2;
_cargo = nearestObject [_chopper, "LandVehicle"];>
19:12:50   Error position: <nearestObject [_chopper, "LandVehicle"];>
19:12:50   Error Type Object, expected Number
19:12:50 File Aircrane\LiftInitAircrane.sqf, line 11

 

 

сам код.- 

lift = 1;
lifted = 0;

while {true} do {
    if (!(vehicle player == player)) then {
       	_chopper = vehicle player;
	    	_chopperpos = getpos _chopper;
	    	_chopperx = _chopperpos select 0;
     		_choppery = _chopperpos select 1;
    		_chopperz = _chopperpos select 2;
		_cargo = nearestObject [_chopper, "LandVehicle"];

		if ((_chopperz < 15) && (_chopperz > 2) && (_chopper distance _cargo < 20) && driver _chopper == player) then
		{
			if (lifted == 1) then {_chopper removeAction liftActionId;};
			if (lifted == 1) then {_chopper removeAction liftActionId2;};
			_cargopos = getpos _cargo;
			_cargox = _cargopos select 0;
			_cargoy = _cargopos select 1;
			if ((lifted == 0) && ((_chopperx <= (_cargox + 20)) && (_chopperx >= (_cargox - 20))) && ((_choppery <= (_cargoy + 20)) && (_choppery >= (_cargoy - 20))) && (lift == 1)) then
			{
			    if (_chopper isKindOf "AIRCRANE_LIFT") then {
					if (_cargo isKindOf "LandVehicle") then {
						liftActionId = _chopper addAction ["attach Land Vehicle","\Aircrane\attachCargoAircrane.sqf"];
						_chopper removeAction liftActionId2;
						lift = 0;
					};
					if (_cargo isKindOf "bambybucket") then {
						liftActionId2 = _chopper addAction ["attach the bucket","\Aircrane\attachCargoBucket.sqf"];
						_chopper removeAction liftActionId;
						lift = 0;
					};
				};
			};
		}
		else 
		{
			if ((_chopper isKindOf "AIRCRANE_LIFT" && (lift == 0)) && ((_chopperz > 30) or (_chopper distance _cargo > 20))) then {
				_chopper removeAction liftActionId;
				_chopper removeAction liftActionId2;
				lift = 1;
				};
		};
	};
sleep 0.1;
};

if(true) exitWith {}; 

аддон aircrane.pbo грузовой вертолет... подскажите в чем проблема?.. так как в игре все работает

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.