Hi and thanks for your reply!
Well, the script works fine i Unity as it is. But I need it to be converted to a action in Playmaker, to work like for example mouselook.
I watched a tutorial were you supposed to use "sendmessage" to call external scripts in to playmaker. But nothing happens when im doing this.
So i guess some code needs to be added into the script so it works with PM.
//Cheers