![]() Even the pitch matters, but it's easy and small. Drawbacks are you need to be aiming very precisely. Raycast.cs does one simple raycast in front of the car. I don't know how critical performance is but I can imagine doing a bunch of simple raycasts and filtering on the already small list is good.Īnyhow while figuring this out I actually wrote two kinda working programs lol Doing multiples would also need to make you filter through the hit ones to get the correct one, at which point you'll be doing the first anyway. The other option would be to do a raycast, but you'd be limited by a single cast. afaik there are two solutions, iterating over all vehicles that are active and check with vectors if they are close and if they are in a certain area in front of you. If you just use ScriptHookVDotNet, you can do something like vehicle.NumberPlate to get the plate.įor looking which is the car in front of you, things are a bit harder. ![]() You basically want to grab the license plate of the vehicle in front of you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |