Jump to content
  • 0

[Fixed] Virtual Garage - spawnpoints for different Vehicle


joe_candy

Question

Hey, i can't find my error, so i hope you could help me...

 

I try to use two different spawnpoints for Air and Land vehicle with two different "helipads".

 

"HeliHCivil" -> air vehicle

"Sr_border" -> land vehicle

 

i try some different codes at the "getvehicle.sqf" but nothing works.

RPT don't log some errors, so i don't know where i could find my error.

 

Try this code

  Reveal hidden contents

 

original getvehicle.sqf

  Reveal hidden contents

Link to comment
Share on other sites

Recommended Posts

  • 0

ok, well still not really clue why the arrow appears 12m in the air.

 

Are you not using: 

PARACHUTE_TARGET

as a parking lot? Because i cant find it in the nearObjects array

Have you tried to spawn a car on an open field with this script?

 

Next thing we could do here is some dirty work, IF you want that the land vehicles spawn allways on the ground:

 

add this:

if (_vehicle select 0 isKindOf 'LandVehicle') then {
	_position = [_position select 0,_position select 1, 0.1];
};

under 

_position = getPosATL _nearestpad;

This is a solution for this problem, but it is the dirty way and only if you want the landvehicles should spawn on the ground

Link to comment
Share on other sites

  • 0

I moved the parking lot and it works fine now. So maybe it was an issue with the terrain?

 

I dunno :D

 

Gonna push this live and let players test it out now!

 

Schwede/UKMartin you guys are awesome for not giving up on this.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...