Jump to content

FPS player command crouching


xana
 Share

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

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