Results 1 to 9 of 9
  1. #1

    Unhappy How To Change the Player Input key function?

    Hey,everyone,just as the title,what I actually want to do is:

    When I press the right button on my mouse,I want to change the camera mode back into first-person.(Just like a little aiming-aid system making the player more easier to hit the target)(Having Change the camera mode into third-person using function "SetBehindView()")

    I discovered that I need to do some work with UTInput.ini ,is that right?

    PLZ give me some solution(beg for solution in detail),and I am very appreciate

  2. #2
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    54

    Default

    search your DefaultInput.ini for RightMouseButton. change it to
    .Bindings=(Name="RightMouseButton",Command="SetBeh indView")

  3. #3

    Default

    Quote Originally Posted by 3j- View Post
    search your DefaultInput.ini for RightMouseButton. change it to
    .Bindings=(Name="RightMouseButton",Command="SetBeh indView")
    I do as you told me,but nothing changed,Is there anything wrong?

  4. #4
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    54

    Default

    i accidentally added a space in the SetBehindView, make sure that didn't make it in there

  5. #5

    Default

    Well,yeah,it's just a typing mistake and I realised that before,and just like before,nothing changed.
    Is there anyone who can do me a favor?

  6. #6
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,986

    Default

    is SetBehindView an exec function?
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  7. #7

    Default

    Quote Originally Posted by Blade[UG] View Post
    is SetBehindView an exec function?
    Well,just as you mentioned,I discoverd that it should be a exec function.

    But actually,the problem is I'm only a freshman in Script and I even don't know what the exec function is.Could you PLZ give me some explain?

    And also beg for some detail about the solution~
    (As you can see,My english's poor~forgive me)

  8. #8

    Default

    Quote Originally Posted by Jixuan.Fang View Post
    Well,just as you mentioned,I discoverd that it should be a exec function.

    But actually,the problem is I'm only a freshman in Script and I even don't know what the exec function is.Could you PLZ give me some explain?

    And also beg for some detail about the solution~
    (As you can see,My english's poor~forgive me)
    Hi

    It's easy, if you want to convert one of your functions to command (Exec Function in this case), just use exec keyword before function keyword in definition. For example if you have a function named SetFirstPersonView, change your definition to somthing like this:

    Code:
    Exec function SetFirstPersonView()
    {
       \\...
    }
    Hope it helps.

  9. #9
    Administrator
    Join Date
    Jun 2006
    Posts
    272

    Default

    The exec function is BehindView() (it calls SetBehindView() - see UTPlayerController.uc)


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.