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
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.
not exactly what im looking for im looking for controls
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.
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
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.
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
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")
var input float aTurn;
You can either create your own input handlers or just use the existing ones .Hope this gets you going