Jump to content

Crouching


DarthRaff
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...