igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 10 Jul 2015 12:20 AM |
I know this exists, that it is inside Humanoid, tho I don`t know how to use it.
I can handle WalkToPoint using the Character`s Position, but I can`t figure out how to use WalkToPart, since it holds a BasePart I thought of:
AI = script.Parent.Humanoid AI.WalkToPart = game.Workspace.AIns1 wait(4)
Said the wise. |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:23 AM |
| MoveTo(vector3 here) is WAY easier to use imo |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 10 Jul 2015 12:24 AM |
@Korean ik, I`m but for you to make random enclosed walking with tables this WalkToPart works better. Idk if I made me clear.
Said the wise |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:27 AM |
| i dont know what you mean by random enclosed tables |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 10 Jul 2015 12:31 AM |
I can have a array of parts whithin a place, I set them into a table, then I choose of of those parts at random, the AI walks from where it is to the part choosen, creating then a walking simulation only to accesible spots (a closed enviroment) in which I can stablish Parts paths if wanted.
Said the wise. |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:32 AM |
or, in case you already have your whole part table all settled up
MoveTo(part.Position)
or
make a new table with more precise Vector3
and do MoveTo(Vector3) |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 10 Jul 2015 12:37 AM |
if that really does not work without errors you could do
hum.WalkToPoint(workspace.AIns1.Position)
never tested walktopart myself, didnt even know it was a thing |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 10 Jul 2015 12:38 AM |
| missed the = sign but you should know how to fix duh |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 10 Jul 2015 12:38 AM |
I guess I can use WalkToPoint = Part.Position, thanks guys. I guess that WalkToPart is outdated.
Said the wise. |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:41 AM |
i suppose WalkToPart(part) == WalkToPoint(part.Position) == MoveTo(part.Position)
but MoveTo() gives more liberty because you dont need a part, same with WalkToPoint i guess
but i think theres a difference |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 10 Jul 2015 12:42 AM |
| WalkToPoint makes your character walk to the point, not teleport like MoveTo |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:43 AM |
| MoveTo() walks as well e.e |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:44 AM |
| MoveTo() on a Model teleports, but on a Humanoid it makes you walk. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
| |
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 10 Jul 2015 12:45 AM |
o didnt know
ye got ninjad last post |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 10 Jul 2015 12:45 AM |
| been using Moveto() for my pathfinding click to move |
|
|
| Report Abuse |
|
|