hulpje Posted September 18, 2012 Share Posted September 18, 2012 im not scripter but in races I'd like to be able to switch instantly between bumper camera and middle (3th person). I couldn't find any commands to do it in-game so maybe someone knows commands for it? Otherwise maybe possible with script? I tried a bit myself but every line I write instantly destroys a working script so I gave up. so I wish to be able to toggle between those 2 modes: setCameraViewMode(0) setCameraViewMode(2) bindKey("v","down","togglecamera") I though this are the client thingies I need but I dont know... and then togglecamera refer to the function or something? Link to comment
Castillo Posted September 18, 2012 Share Posted September 18, 2012 bindKey ( "v", "down", function ( ) setCameraViewMode ( ( getCameraViewMode ( ) == 0 ) and 2 or 0 ) end ) Is that what you wanted? Link to comment
50p Posted September 19, 2012 Share Posted September 19, 2012 I'd use "change_camera" instead of "v". Link to comment
TwiX! Posted September 19, 2012 Share Posted September 19, 2012 bindKey("v", "down", function() local cMode = getCameraViewMode() cMode = cMode + 1 if cMode == 2 then cMode = 0 end -- or cMode == 6 (all modes) setCameraViewMode( cMode ) end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now