generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Suggestions & Ideas
Home Search
 

Re: Add an ignore list to the pathfinding system.

Previous Thread :: Next Thread 
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 11:09 AM
Let me build a scenario, I have a robot who is chasing the player. If the robot reaches the character, the player loses. You've used the PathfindingService to constantly send movement instructions to the robot trying to move it to the player's torso.

What happens if the character tries to escape the robot: Elimination.
What happens if the character stays still: Path returns an bad status.

Why would it error you might ask? Because the pathfinding service is asked to find a path to a position which is currently inside a block. If the player stands still, the status returned by the Async call will be Enum.PathStatus.FailFinishNotEmpty.

Now, I realize that if you simply followed the path anyway after the FailFinishNotEmpty status you would still reach the character. But, think about it. That fixes one issue just to make the NPC vulnerable to another. What if the player actually WAS in occupied space? I.e, anchored inside a block. The robot would plaster his face against the brick trying to get to the player constantly, possibly ignoring other available targets.

Proposal:

Add an optional 4th argument to the ComputeRawPathAsync function which would expect a table of Instances whose descendants would be treated as empty space in the A* voxel algorithm.


I realize that this could be difficult to implement. However, this feature was introduced to make smart AIs possible and without an ignore table this is restrictive.

Thank you very much!


<---- silent chicken, sweg
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 11:11 AM



<---- silent chicken, sweg
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 11:25 AM
a


<---- silent chicken, sweg
Report Abuse
lordsheen is not online. lordsheen
Joined: 24 Oct 2008
Total Posts: 608
07 Aug 2014 11:25 AM
Um. What pathfinder script are you talking about? o_O

~~hi im a oder my name is lordsheen idk what oder means btw~~
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 11:28 AM
ROBLOX announced a PathfindingService earlier this week to simplify pathfinding. It can be accessed using game:GetService("PathfindingService"):ComputeRawPathAsync(start,finish,maxDistance)


<---- silent chicken, sweg
Report Abuse
Stonixx is not online. Stonixx
Joined: 05 Jun 2010
Total Posts: 2781
07 Aug 2014 11:33 AM
Agree
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 11:36 AM
Spread this.


<---- silent chicken, sweg
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 12:02 PM
Bump.


<---- silent chicken, sweg
Report Abuse
m27frogy is not online. m27frogy
Joined: 26 Mar 2009
Total Posts: 4427
07 Aug 2014 05:08 PM
Bumpy.


<---- silent chicken, sweg
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image