Jump to content

Recommended Posts

Posted

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

Posted

to get 2.31 download the new sdk loader from the download section

sorry can not help about you question

Asus ROG STRIX B350-F GAMMING

AMD Ryzen 7 1700x

32 gb ddr4

15 TB raid 5 HD

Nvidia EVGA 1060GTX

Win10 64bit

Posted

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 :)

-= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=-

Website: http://www.flamewarestudios.com

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...