I am trying to pass in the “PullTrigger” function to the timer, but it dosnt work.
Without the input parameter everything works fine, but I dont know the proper way to pass a function in with an input parameter.
You can’t pass arguments to a timer callback. At least not with the UFunction way. I believe you might be able to capture the argument using a lambda function instead, but I would advise against it. Instead you can save a pointer to the character in StartShooting
, and then use it inside PullTrigger
like you would otherwise