• 0
VeteranGames

Helicopters : Failed to purchase vehicle 13

Question

12 answers to this question

Advertisement
  • 0

lmao ok well when dosent fix cause of the way he said then try my way cause i have scripted alittle on server i am admin on and i have see this error cause when vehicle is bought it spawn randon in 100 meters so not to land on another stuff

Edited by justinlee

Share this post


Link to post
Share on other sites
  • 0

lmao ok well when dosent fix cause of the way he said then try my way cause i have scripted alittle on server i am admin on and i have see this error cause when vehicle is bought it spawn randon in 100 meters so not to land on another stuff

Actually it tries to find a 40 meter zone to spawn in, which isn't possible in some of the traders on Chernarus. If you've done a little scripting, then look at how its done in the ExileServer_system_trading_network_purchaseVehicleRequest function:

 

		if (_vehicleClass isKindOf "Air") then 
		{
			_position2d = 
			[
			    (getPosATL _playerObject), 
			    5,                  
			    175,            	 	
			    40,       // Note: Search for an empty area 40m wide.          
			    0,                  
			    9999,               
			    0                   
			]
			call BIS_fnc_findSafePos;
		}
		else 
		{
			_position2d = 
			[
			    (getPosATL _playerObject), 
			    5,                  
			    80,            	 	
			    8,                 
			    0,                  
			    9999,               
			    0                   
			]
			call BIS_fnc_findSafePos;
		};
		if(count _position2d isEqualTo 3)then
		{
			throw 13; // Error code 13. 3D position was returned (in the air)
		};

It's not a semicolon issue. A semicolon issue would result in a completely different error message.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Sorry for the repull of the thread but i got the Same Problem but everything is finde already cleared to whole trader area on altis Terminal trader still doesnt work. Radius etc. All cleared and done but nothing works.  Its the mod CUP vehicles. 

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.