0
Answered

Weapon position in hand

Rezus13 8 months ago in Shooter updated by Bert 2 months ago 8

Hello, guys, I have some difficulties with weapon position in hand like in your video example. I cannot activate aiming state to rotate my new weapon like i want. My third person player in idle state and weapon rotation is not very comfortable.Sorry for my bed english, I’m from Ukraine

Unity version:
2018
Game Creator version:
1.0.7

and I’m talking about playmode ant scene tab

okay, sorry, I understand how to position weapon in hand) 

Glad you managed to solve the issue! Would you mind sharing what was the problem? Just so if someone happens to have the same issue we can redirect him to this answer. Also, if it's something that can be easily misunderstood, we might also try to make it ore self explanatory.

PS: Your english is perfect ;-)

+1

Hi, of course! Apparently the problem was due to the fact that I was only 3 months with Unity. I couldn't find and turn the weapon the way I needed, and then I realized that I needed to go into game mode, activate aiming, and in scene mode, click on the weapon, turn it, put it in right position, pay attention to the parameters and copy them at Weapon Prefab (in project assets). When exiting the game - prefab position will remain and next time when aiming the weapon will be in the right place. The same applies when a player is in idle mode.

Answered

Excellent! Thank you!

I am having a similar issue with the bow and arrow. When equipping a bow to the default model it works perfect. When I change the player model to any other humanoid, the bow attaches correctly but the arrow is aiming in the wrong direction. 

I was wondering if the steps above would solve this? and if so, how do I activate aiming without having to right click and switch between screens at the same time?

Tip: Ctrl+Shift+P pause/unpause game

Ctrl+Shift play/Stop game

Ctrl+Alt+P go forward 1 frame at a time.

Ctrl+  1 (top keys not num pad) Scene view switch

Ctrl+ 2 (top keys not num pad) Game view switch

or have scene view and game view next  to each other.


yes. 

just use the adventure camera and a seperate on trigger start add the action weapon aim and move your camera in play moder around the player to get a good position.

Then you can use Ctrl+shift+P to pause the game and set up your weapon position in the scene view.

When you are happy copy that transform and press Ctrl+p to stop play mode and replace then the new transforms by right clicking on the transform and paste component values. 

Now when you press play again Ctrl+P your weapon will be correct.

With the arrow, maybe you have to rotate it or use an action to rotate it correctly when you equip it

Thanks for the shortcuts, that helps a lot. 

After playing around a bit, I found that when using the ShooterExamples. There is a setting in the Arrow.asset (Ammo Model) that allows rotation and position changes.