Ah never mind, I just edited the function a bit to be self dependent using nothing but $post_ID as an input and it worked.
Thanks for your help!
I need to pass some variables to my function, and add_action seems confusing in that area. Can you help me out?
There are 2 variables that need to be passed, both using data from the post (from the get_post function).