Jump to content

Urwigo distance zone


dmorletd

Recommended Posts

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

Link to comment

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 ?

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...