Aiming down sight state while crouching

Aren't you able to just edit the first-person visible item's transform position as you would normally with any first-person item? Demonstrated at approx 10 mins into this video -
 
Aren't you able to just edit the first-person visible item's transform position as you would normally with any first-person item? Demonstrated at approx 10 mins into this video -
I could! But I would be leaving my arms behind ?. This is tricky, the arms themselves can't be moved at runtime.

This "idle" stance is ultimately tied to the character actively aiming, even if the aim down sight key isn't being pressed. I tried using a keybind in my code instead of the aiming ability (the right mouse for aiming down sight), but that didn't register.
 

Attachments

  • Desktop Screenshot 2020.11.29 - 17.39.04.08.png
    Desktop Screenshot 2020.11.29 - 17.39.04.08.png
    300 KB · Views: 4
Apologies I'm not quite following... so for some reason changing the position offset value of the item's First Person Perspective Item doesn't move the arms along with it? Is this "idle stance" a state preset that's being activated which is forcibly setting this position offset value to a different value that you can't override? If so, you'll need to setup your states so that that preset isn't active when not aiming, right?

Sorry, this thread has gone for a while now and I'm starting to lose the plot ?‍♂️
 
That's okay cause it looks like I fixed it! After re-enabling "activate in first person", I looked into what I could do with the event system on my camera. It was then I found the "On Zoom Event (Boolean)" setting. Creating a new event, I dragged in my M4A1 item that had the crouching script attached to it. From there, I simply set the script to be enabled during runtime only. Lo and behold, I get the desired effect of changing my position offset only while aiming down sight AND crouching at the same time.
 
Top