IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 11 Oct 2017 07:29 PM |
using moveto is there a way to see if its being stop by something?
like using an npc. using MoveTo() to make it move.. and say a brick is in its say? is there a way to see that? |
|
|
| Report Abuse |
|
|
JamSnack
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 154 |
|
|
| 11 Oct 2017 07:37 PM |
| You could make it display a message every time it touches a brick, if that is what you are asking |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 11 Oct 2017 07:46 PM |
| That's not exactly what i'm asking but it will work thank you! lol |
|
|
| Report Abuse |
|
|
Extuls
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 5557 |
|
|
| 11 Oct 2017 08:57 PM |
| The real question is why you're using MoveTo() to move your NPCs. Is there a reason you can't use a humanoid? |
|
|
| Report Abuse |
|
|
cabbler
|
  |
| Joined: 19 Jun 2015 |
| Total Posts: 735 |
|
|
| 11 Oct 2017 09:04 PM |
| raycast from the character to the target point, from torso height |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 12 Oct 2017 02:02 AM |
Extuls, what do you mean?
Honestly I never though of raycasting lol |
|
|
| Report Abuse |
|
|
Extuls
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 5557 |
|
|
| 12 Oct 2017 03:13 AM |
| If your NPCs can use a humanoid, use one. Humanoids have functions (Move and MoveTo) for making a player/NPC walk. |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 12 Oct 2017 12:09 PM |
| That's what is being use Humanoid:MoveTo() |
|
|
| Report Abuse |
|
|
Nooctisz
|
  |
| Joined: 06 Jun 2014 |
| Total Posts: 723 |
|
|
| 12 Oct 2017 01:09 PM |
hum:MoveTo(Vector3 value)
Incipiens is hot<3 |
|
|
| Report Abuse |
|
|
Extuls
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 5557 |
|
|
| 12 Oct 2017 05:31 PM |
In the post it wasn't very clear, and since I've never really bothered with making NPCs my first thought was the function of a model.
Anyway, I think what you might be looking for is this:
http://wiki.roblox.com/index.php?title=API:Class/PathfindingService |
|
|
| Report Abuse |
|
|