mordentral
(mordentral)
August 4, 2019, 7:26pm
3421
joelbenjamin:
Hi –
I have two one questions when you get a chance! – (answered my own first question - I was missing one of the input events, I’m an idiot)
2nd –
I THINK I have a solution for but trouble-shooting… and it’s not quite getting me there…
Can I force-call a grab on a controller?
The example- I want to use a secondary Grip for a 2-handed weapon. However, that grip also needs to be a slider (shotgun pump, in case).
My thought was - have the Grip action go to the secondary grip socket for the weapon. Then, on TRIGGER pull for the second hand, actually use the Blueprint to force the grip over the slider (which would be in the exact same spot, so visually the hand wouldn’t move), to allow for the Slider to move… then when the TRIGGER is released, for the grip back to the Secondary Grip socket.
Thanks in advance, I realize it’s not always easy to find time to answer questions!
If you are secondary gripping the object anyway then its kind of a waste to also grip the slider, if you don’t want to run custom logic to move the slider though with it then yeah its a viable method.
As for manually gripping, call GripObjectByInterface from the controller and pass in the object you want to grip.