Jump to content

Recommended Posts

Posted

I see that there are the beginnings of a crouch function commented out in the FPSPlayer.lua file, and that the official stance is that crouching is 'not supported' yet in the Indie edition, but can anyone give me info on how I might script some kind of crouching functionality into the FPSplayer script?

 

I'd really appreciate it.

Posted

When crouch key pressed

1) Change Height of character controller by code to the new lower height

2) Move camera by code at some speed until camera is at the new lower height

And you are in crouched position.

Stop toying and make games

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...