i just dont get one thing about it, does this mean i should completely overwrite the function i have, save the camera settings from it and put them in your "function camera update"?
Yes.
But what you need to know: My approach is just one. There are many ways to construct this.
If you however choose to use that approach, remember to call the camera_Update function once each frame in the player's while loop.
I assume you have a player action which controls movement etc. and thus have a while loop inside that action.
As I said, call the camera_Update function right before the wait(1) of that while loop.