added the ability to return action for shooting and attacking