I guess setting a boolean when player is withing charging distance and changing the behaviour depending on if the boolean is true should do the trick?
I suppose i make a false boolean. Then i change it to true on line of sigth of the player. Then i make a instance boolean set as a action and then charge as the action. Too bad it doesn't work whit this so what am i doing wrong?