DarthRaff Posted March 1, 2010 Share Posted March 1, 2010 Hi, I updated from 2.30 and tried the crouching system but it not recognize the parameters ("UpdateController not take 6 arguments") i use this to create the controller: player=CreateController(1.84f,0.50f,0.5f,45,.0f); this to activate it: if (KeyHit(KEY_C)){ if (ControllerCrouched(player)){ crouch=0; //cameraheight=.84f; } else{ crouch=1; //cameraheight=.0f; } } and this for update: UpdateController(player,camrotation.Y,move*2,strafe*2,jump,500,1,0); where is the 2.31 version? or what i'm doig wrong, please. Thankyou Quote Link to comment Share on other sites More sharing options...
carlb Posted March 1, 2010 Share Posted March 1, 2010 to get 2.31 download the new sdk loader from the download section sorry can not help about you question Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
wh1sp3r Posted March 1, 2010 Share Posted March 1, 2010 UpdateController has crouch as last parameter. parameters are (controller, flt angle, flt move, flt strafe, flt jump, flt maxacceleration, int iterations, int crouchmode) so, pass your variable to the last parameter Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
DarthRaff Posted March 1, 2010 Author Share Posted March 1, 2010 Ok, thankyou very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.