|
| 23 Nov 2013 10:01 PM |
I noticed in some games, the creator scripted their guns so that the guns and the arm follow the camera so that when you point up, the gun actually points up and when you down the gun points down instead of the default action where the gun only follows the camera from left to right.
I wanna know how they do this. Maybe a link to a gun that does this in catalog. I want to study this in depth. |
|
|
| Report Abuse |
|
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
|
| 24 Nov 2013 11:47 AM |
Well I think that's absolutely obvious, but that's not what I meant. I'm talking about the code.
The fact that the camera is an instance and not an actual physical part makes me hesitant to experiment with it. |
|
|
| Report Abuse |
|
|
Jeffe32
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 1616 |
|
|
| 24 Nov 2013 11:55 AM |
| Make it so the arms go up and the gun just goes along with it. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 24 Nov 2013 12:33 PM |
A. Using the origin property's of the mouse.
B. Using a right angle for (?)
C unit vector |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 12:34 PM |
| Take one of pinkybelt's guns. Study the scripts that make the arms move up and down. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2013 11:25 AM |
took me a while to actually find pinkybelt, since that name didnt seem to pop up in People.
I found the HK. I'm going to go ahead and use it temporarily as the gun for the game until I can actually study such a massively scripted weapon. |
|
|
| Report Abuse |
|
|