Results 1 to 7 of 7

Thread: Moving a pawn

  1. #1
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    85

    Default Moving a pawn

    can any one tell me what script actually moves the default pawn for mobile , i know MobilePC makes the footsteps sound and does the tap to move, but i dont see anything related to actually moving the pawn with the joytick unless i missed something

  2. #2
    Banned
    Join Date
    Apr 2011
    Posts
    161

    Default

    There was actually a problem with moving pawns.
    It was mentioned in a previous post by a guy called Jason Amstrad.
    Click here: http://forums.epicgames.com/showthread.php?t=769599
    Last edited by Ryan Commodore; 05-22-2011 at 01:07 PM.

  3. #3
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    85

    Default

    not exactly what im looking for im looking for controls

  4. #4

    Default

    You could possess your pawn to an AI controller (and do pathfinding with it) then repossess it to your player controller upon any additional input.

  5. #5
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    85

    Default

    is that what controls the default pawn, i mean what im looking for is what controls the mobilegame and castlegames pawn, how it walks with the joystick and looks around just need to find that script the has the controls in it, sorry to be a pain

  6. #6
    Technical Writer - UDN
    Join Date
    Aug 2006
    Posts
    3,856
    Gamer IDs

    Gamertag: ffejnosliw

    Default

    MobilePC and CastlePC. The PlayerController is responsible for taking input from the player and translating that into movement of the Pawn.

    CharactersTechnicalGuide contains some explanation of how they work together.

  7. #7
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    98

    Default

    In mobile/defaultGame.ini have a look in the zone definitions for the joysticks, you'll see they point to a standard inputkey types ... have a look for them in mobileInput.ini . You'll see the code they run in PlayerInput.uc

    [UberStickMoveZone MobileInputZone]
    InputKey=MOBILE_AForward
    HorizontalInputKey=MOBILE_AStrafe
    Type=ZoneType_Joystick

    [UberStickLookZone MobileInputZone]
    InputKey=MOBILE_ALookUp
    HorizontalInputKey=MOBILE_ATurn
    Type=ZoneType_Joystick

    input.ini
    Bindings=(Name="MOBILE_ATurn",Command="Axis aTurn DeadZone=0.05")
    Bindings=(Name="MOBILE_ALookup",Command="Axis aLookup Speed=-1 DeadZone=0.05")
    Bindings=(Name="MOBILE_AStrafe",Command="Axis aStrafe DeadZone=0.15")
    Bindings=(Name="MOBILE_AForward",Command="Axis aBaseY DeadZone=0.15")

    PlayerInput.uc
    .....
    var input float aTurn;
    ...


    You can either create your own input handlers or just use the existing ones .Hope this gets you going

    Rob


 

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.