|
| 20 Jan 2012 12:36 PM |
I'm thinking of how to make a gun that aims (if you ever played left4dead, paintball on roblox you'd have an idea of what I mean) But I don't know where to start. Moving your arm welds when looking up or down is black magic to me.
So plain and simple: What property or method can I use? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 20 Jan 2012 12:39 PM |
| He did quit, and gave me his character to me. |
|
|
| Report Abuse |
|
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Jan 2012 12:48 PM |
| Do you wan't it to work in first person? |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 12:49 PM |
| That was the whole idea. But I already know how to clone your arms every time you equip a gun. I just need to know how they managed to make the welding change every time you looked up or down. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
mustyoshi
|
  |
 |
| Joined: 27 Dec 2007 |
| Total Posts: 41651 |
|
|
| 20 Jan 2012 01:02 PM |
You have two options, you can do complex math to get the angle. Or you can do clever weld hacks to get it to point.
~Monica |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 01:15 PM |
| It's not even nearly as complex as you think. I can't remember an Arm's size and specific rotation, and right now I have 3 things slowing my internet down to nothing, if you can get me those 2 I'll work a script for you. |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 20 Jan 2012 01:39 PM |
| Set it's desired angle to either (math.pi) or (-math.pi). |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 02:14 PM |
@mew
but how exactly do I script my gun so that the rotation only changes at a players given camera postion? |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
| |
|
|
| 20 Jan 2012 02:35 PM |
| Position, its easy to deduce. o: |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 02:37 PM |
meant to say rotation...
I meant the angle at which your camera is positioned (you look up,down,right,left) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 20 Jan 2012 05:19 PM |
All I want is
--The function (when you move your camera in first person)
--The rest I can do, I just have no idea how am I supposed to start it |
|
|
| Report Abuse |
|
|