So I’m attempting to check whether or not there’s a vehicle within radius of a given position, however GetClosestVehicle doesn’t seem to be aiding me in this as it always returns that there’s no vehicle there.
I’ve read on a few threads that this problem seems to persist, however all solutions point to using RayCasting, which while helpful doesn’t really help me in my case ( I think ) as I’m looking to simply check if there’s a vehicle near a position, rather than checking if the player is looking at a vehicle ( I assume they use this for the likes of removing vehicles ).
Anyway, hopefully someone might have a way I can get around this issue? Thanks all
Yes, believe it or not, I have the capability of using arguments.
Might I ask what unit they use in regards to radius? Are we talking meters? I read on another thread something in regards to “units”, however I’m unsure how that would translate to this.
Well no matter, I’m sure I’ll find a work around eventually, thanks regardless WolfKnight
Edit: See I mentioned RayCasting beforehand, but I’m wondering how I could actually check the area before hand, I mean as far as the scripts concerned, there’s no vehicle there.
Check my delete vehicle script, the ray cast I used checked a certain number of units in front of the player and only returned what was between the player and the end point.
The problem there is that I’m not really looking for vehicles in front of the player, but rather checking if there’s a vehicle within a given radius of a specified position.
In this case, we can disregard the player entirely