Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
Aeleas

Set area for player ?

Question

Hi.

image.png

 

I want to setup a new area for character that he moves inside it only. But I don't know how to select or create that area ?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 1

By just using Please login or register to see this link.  and visualizing using Please login or register to see this link.

 

And you can look at my fish script to see an example of binding ai to to an area (although it doesn't use navmesh, the core coding would be the same) 

 

  • Like 1

Share this post


Link to post
Share on other sites

  • 0

As far as I know there isn't a built in thing that restricts ai to certain grid locations, pretty sure you can only do it in code. Like if !restrictionBounds.Contains(target){target = GetTargetWithinBounds();} I do the same thing with my fish/wildlife methods to keep them from straying off

Share this post


Link to post
Share on other sites
  • 0

I thought I can do something like this. terrain part,

Please login or register to see this link.

 

I will follow your script, How to scale my area ?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

Sign in to follow this  

×
×
  • Create New...