Results 1 to 10 of 26

Thread: key on keyboard

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Is there a function to make a player look to the right/left?

    I'm editting the vehicles mod, and I would really like for the players to be able to pilot planes and jeeps using the directional keys.
    I noticed that I can set these binds:

    bind UPARROW "+lookup"
    bind DOWNARROW "+lookdown"
    bind RIGHTARROW "+mlook"

    I noticed that +lookleft or +lookright won't work - are there any similar functions?

    I don't know what "+mlook" does, can anybody tell me? It may be helpful.

    So, what I'm thinking right now is to execute a script from each of the directional keys. This script would change the player's angles. Is this possible?


    Editted: if there are functions to look to the right/left, I'll just use them with up/down and adjust player's sensivity when entering a vehicle.

    Editted #2: I also noticed there is a +klook, trying to find out what that is.

    Editted #3: Found out about "+right" and "+left". It's just what I needed. All I need now is to adjust the player's sensivity. I'm still accepting suggestions.
    Little problem - how to restore the player's original sensivity after he leaves the vehicle? I think I'll write a .cfg file before changing sensivity, and execute it after he leaves the vehicle.

    Editted #4: Looks like sensitivity only works with the mouse.
    Last edited by guiismiti; 7th September 2014 at 06:02.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •