|
| 04 Oct 2011 05:16 PM |
| Getting started with some stuff I haven't used before. What does .Unit do? and how do I use .TargetPoint? Thanks |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 04 Oct 2011 05:19 PM |
| Im sorry.. IDK what that means. Targetpiont might be an area that the humanoid would go to. It might work with the :MoveTo function..... It can't be entered manually, I know that. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2011 05:25 PM |
Here is a snipit of code from where I found it, also, any word on .unit?
local targetPos = humanoid.TargetPoint local lookAt = snap( (targetPos - character.Head.Position).unit ) local cf = CFrame.new(targetPos, targetPos + lookAt)
|
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 04 Oct 2011 05:28 PM |
| nah... I'm not THAT advanced, even though I've read a LUA book. TargetPos... that's seems familiar. I think that it is used in scripts for things that follow people, like zombies or RPG enemies... |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2011 05:31 PM |
I solved my own question, TargetPoint = the Position your mouse is at when holding a tool. hmm...very useful. Do you know what math.Unit is used for?
|
|
|
| Report Abuse |
|
|
|
| 04 Oct 2011 05:32 PM |
| (that .unit question is to any one) Thank you for your time Bergan 8D |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 04 Oct 2011 05:34 PM |
| Glad to help... or atleast try. I forgot. It DOES have to do with cursors. I'll see if I can find anything with a unit function. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2011 05:51 PM |
| TargetPoint is the point that the humanoids cursor is on. This only changes itself if it's a humanoid of a character of a player. |
|
|
| Report Abuse |
|
|