0
Answered

Revolver placement problem

Simon 4 months ago in Shooter updated by Marti (Lead Developer) 4 months ago 4

Hello I can not place the revolver in the hand of my player. I followed the instructions you give here, but it doesn't work.


Can you help me please?

I have another concern which is that when I shoot I have a click of an empty weapon but no shoot. I cannot load the weapon. However, I created a trigger on the middle button of the mouse which triggers a reload action. But it does not work.

Thanks in advance.

Unity version:
2019.3.10.f1
Game Creator version:
1.1.8

Answer

+1
Answer

Do this 

1. Start the game.

2.draw the weapon as seen in your picture 1.

3.Go to scene view and adjust the weapon so it sees that the player is holding it properly.

4.In the inspector window of your revolver, copy the transform components, or copy each value and paste it in the weapon prefab like below.

The prefab position determines how you hold the weapon.

GOOD, I'M SATISFIED
Satisfaction mark by Simon 3 months ago
+1
Answer

Do this 

1. Start the game.

2.draw the weapon as seen in your picture 1.

3.Go to scene view and adjust the weapon so it sees that the player is holding it properly.

4.In the inspector window of your revolver, copy the transform components, or copy each value and paste it in the weapon prefab like below.

The prefab position determines how you hold the weapon.

OK ... it is on the prefab that I have to modify the transform... Okay.

So I imagine that for my second problem it is also on the prefab of the revolver that I have to modify my configuration?

+1

yes everything related to the prefab placements have to be done as I have mentioned

Answered

Yup, the model, as Rahul says, must be configured from the 3D model part. I'd recommend checking our livestream to see how to set up a weapon: https://www.youtube.com/watch?v=c2HJKxVhHh8