Hey all.
I’m working on a new weapon for my game and wanted to get some feedback on my initial thoughts of how to implement it.
When you “fire” the weapon, it is supposed to deactivate player input and instead it should funnel input into a fixed position camera (so that the input can rotate it), the camera should render to a texture so that the texture can be used on the weapon itself. Think of it like an endoscope or something.
So my questions:
- How to disable player movement, whilst still allowing player input? I’m using shootergame, so I’m assuming there’s some method of disabling movement at least.
- How do you transfer input to another actor (the camera) whilst still allowing input for the weapon so that you can stop using the weapon and delete the camera
- How to funnel the camera render texture to the weapon material
Any help with these things would be super useful.