Jump to content
xana

FPS player command crouching

Recommended Posts

Bonjour en cherchant comment rajouter une commande pour s'accroupir j'ai remarqué qu'un bout du code à était désactivé ma question est pourquoi?

Et comment le refaire fonctionner?

-------------------------------------------

Hello seeking how to add a command to crouch I noticed a piece of code was off my question is why?

And how to run it again?

 

-- Check for crouching
--if App.window:KeyHit(Key.ControlKey) then
-- crouched = not crouched
--end

Bizarrement sa plante donc j'ai changer un peut le code en ceci

Strangely his plant so I changed the code a bit in this

-- Check for crouching
if window:KeyDown(Key.A) then
 crouched = not crouched
end

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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