+dmorletd Posted October 13, 2013 Share Posted October 13, 2013 I have a problem with function "Distance to a zone" when used as a condition in an if/else branch. If I use the option "inside", "in proximity" or "in distance", the condition will never pass. How can this be used? It does not work as direct condition function nor as the inner function together with compare distance to a zone. Is there an other way to test if the player is in a zone to make an action Quote Link to comment
+jonny65 Posted October 13, 2013 Share Posted October 13, 2013 Perhaps you want this : Define a zone with only 3 points, all of them with the SAME (!) coordinates. Now you have a "point zone". Choose "Distance to a zone" with option "value" and compare : if distance to a zone<=50 then messagebox("You are 50 feet away from the zone"). In these case you virtually have a round zone around the pointzone. Or you can compare and give an info to the player. Together with a timer you can do things like "You are 47 feet away ...", "You are 33 feet away ...", "You are 17 feet away ..." and so on. Or that (to check if the player is inside the zone) and using a "normal 4 point zone" : Simply choose : if Zone contains Player then messagebox("Now you are inside") Clear or do you need a picture ? Quote Link to comment
+dmorletd Posted October 16, 2013 Author Share Posted October 16, 2013 Thanks a lot !!! It works ... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.