ChillestDev Posted June 20 Share Posted June 20 (edited) How would I go about getting a prop on the map such as Menyoo, or Map Editor but rather than having a cursor hover over it, have the player near it EDIT: Using the object/ped/vehicle lists from the already existing MapEditor Edited June 20 by ChillestDev Link to comment Share on other sites More sharing options...
LeeC22 Posted June 20 Share Posted June 20 4 hours ago, ChillestDev said: How would I go about getting a prop on the map such as Menyoo, or Map Editor but rather than having a cursor hover over it, have the player near it EDIT: Using the object/ped/vehicle lists from the already existing MapEditor For those people who don't use Menyoo, it might be worth explaining how Menyoo works so that they can understand the problem better. It sounds like you want to get a nearby prop based on the player's position but I can't be sure. Link to comment Share on other sites More sharing options...
ChillestDev Posted June 20 Author Share Posted June 20 (edited) 6 hours ago, LeeC22 said: It sounds like you want to get a nearby prop based on the player's position but I can't be sure. Yes exactly this! Menyoo works by flying around with a rendered camera and a crosshair. Once the crosshair is over a prop, it detects it and allows you to edit its properties. I would like to go about doing this with the player character touching it rather than a crosshair. Edited June 20 by ChillestDev Link to comment Share on other sites More sharing options...
LeeC22 Posted June 20 Share Posted June 20 (edited) 55 minutes ago, ChillestDev said: Yes exactly this! Menyoo works by flying around with a rendered camera and a crosshair. Once the crosshair is over a prop, it detects it and allows you to edit its properties. I would like to go about doing this with the player character touching it rather than a crosshair. So something like this: Prop[] nearProps = World.GetNearbyProps(Game.Player.Character.Position, 5f); foreach (Prop p in nearProps) { if (Game.Player.Character.IsTouching(p)) { // Do something with the prop here } } Edit: This is SHVDN v2 code (as all my code is), so if you're using v3 that might be slightly different. Edited June 20 by LeeC22 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now