24.10.2011, 06:22
Hello, I am new at scripting and forums. I created a script, who makes when player type "/driftaxis" to lock the camera behind him , like TogglePlayerControllable, but with control . The problem is i want to make the script with timer, i mean when player type "/driftaxis 5" to make the camera behind him/car for 5 minutes and when he type "/driftaxisoff" to stop the locked camera behind him, not to stop it via getting of the car and go in again... . The other problem is when i move over the mouse the camera moves, i mean didnt lock, but when a stop moving the mouse , the camera go backs in behind the player. I maked 2 codes :
http://pastebin.com/0My9hZ3s
http://pastebin.com/kLdPRjHS
Tnx anyway.
http://pastebin.com/0My9hZ3s
http://pastebin.com/kLdPRjHS
Tnx anyway.