YourPawn:
If you want to reverse the control, so that you Walk by default instead of run by default, in YourPlayerController:PHP Code:// This uses the Pawn version of SetWalking instead of UTPawn
event SetWalking( bool bNewIsWalking )
{
super(Pawn).SetWalking(bNewIsWalking);
}
Now, in YourPawn's defaultproperties, you set GroundSpeed= to the maximum run speed, and you set WalkingPct= a floating point percentage (between 0.00 and 1.00) that will be percent of the groundspeed that is used when walking.PHP Code:// inverse the default meaning of the Run button
function HandleWalking()
{
if ( Pawn != None )
Pawn.SetWalking( bRun == 0 );
}
You may also want to set bCanWalkOffLedges=True otherwise when walking, you will not be able to fall off ledges with drops larger than small stairs.




![Send a message via ICQ to Blade[UG]](images/styles/TwistedDark/misc/im_icq.gif)
![Send a message via AIM to Blade[UG]](images/styles/TwistedDark/misc/im_aim.gif)
![Send a message via MSN to Blade[UG]](images/styles/TwistedDark/misc/im_msn.gif)
![Send a message via Yahoo to Blade[UG]](images/styles/TwistedDark/misc/im_yahoo.gif)

Reply With Quote




Bookmarks