ChillestDev Posted June 11 Share Posted June 11 (edited) Is it possible to be able to get the object on the map (the actual 3d game, not the 2D map!) (tree, ground, etc) and be able to change its properties? Not sure if it is possible as I know with menyoo not all objects on the map are selectable. Edited June 11 by ChillestDev Link to comment Share on other sites More sharing options...
LeeC22 Posted June 11 Share Posted June 11 Map objects can be really inconsistent with their interactability script wise. I have a mod that puts vendors in the kiosks on the pier but not every kiosk can be detected by script. I think it depends on how the object is put into the world and whether it exists in the entity pool or not. I am sure I read somewhere that there is a flag value that can affect that but i can't remember where I read it, it was quite a while back. But the Ferris Whale is a good example, I tried every possible way I could think of to detect it by script and it just wouldn't work. Link to comment Share on other sites More sharing options...
BOPOHua Posted July 25 Share Posted July 25 RaycastResult raycastResult = World.Raycast(GameplayCamera.Position, GameplayCamera.GetOffsetPosition(new Vector3(0f, 10f, 0f)), (IntersectFlags)10, Game.Player.Character); World.DrawMarker(MarkerType.DebugSphere, raycastResult.HitPosition, Vector3.Zero, Vector3.Zero, new Vector3(0.05f, 0.05f, 0.05f), Color.Orange, false, false, false, null, null, false); if (raycastResult.DidHit && raycastResult.HitEntity is Object) { this.Object= (raycastResult.HitEntity as Object); } [Flags] public enum IntersectFlags { Everything = -1, Map = 1, MissionEntities = 2, Vehicle = 10, Peds = 12, Objects = 16, Vegetation = 256 } ChillestDev 1 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