Hi,
Is it your video or did you find it because you have the same problem?
-- first you need to address your infinite loop. I can see a warning stating that you have an infinite loop in there.
it's because there is no object being hit: the fsm variable objecthited is null if you look at the action interface in the second attempt, where in the first attempt, objecthited is equal to "Cube".
So, the issue could be that you reset the objectHited variable maybe?
If you want to send me the project, simply pm me. Else can you post screenshots of your fsm? and especially what is done on "act" state.
BUT, first you need to address this infinite loop issue, that's also likely a source of issues.
bye,
Jean