Results 1 to 25 of 25
  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    43

    Arrow How do you change the walk speed of your character ?

    Hello community, this is my first topic on the forum.

    I'm working on a project for architectural visualization and as the player is a robot in UDK, I need to slow him down a bit to accommodate his walk to the environment.

    Does anybody know how should I proceed via Kismet for example.

    Thank you.

  2. #2
    Redeemer
    Join Date
    Sep 2007
    Location
    Finland
    Posts
    1,288

    Default

    console command "setspeed *number*".

  3. #3

    Default

    and here's a pic of what that looks like in Kismet, change ToggleHUD to SetSpeed. I like 0.3 It's a nice slow, walking pace. Good for realistic proportioned interiors.


  4. #4
    MSgt. Shooter Person
    Join Date
    Feb 2011
    Location
    Leicester, England
    Posts
    97
    Gamer IDs

    Gamertag: uk dry

    Default

    It works using the following Kismet sequence set up:



    I tried it with a level loaded event which would of been more efficient but for some reason wasn't working. If you want to experiment with that feel free (if you manage to get it to work please respond here annotating your success).

    Just incase:

    Add a trigger to your level
    Go into Kismet and right click > New Event Using Trigger_# > Touch
    Right Click > New Action > Console Command
    Put Touched into In of the Console Command action
    Right Click > New Variable > Player > Player
    Plug the Player var. into the Target of your Console Command action
    Ensure you spawn in the triggers radius (can be adjusted in it's properties) by placing the spawn point within it


    EDIT

    See above for a better, more efficient way. I'm still learning UDK & Kismet so excuse me ^_^

  5. #5
    Veteran
    Join Date
    Sep 2006
    Location
    Newcastle, UK
    Posts
    6,971
    Gamer IDs

    Gamertag: ambershee

    Default

    It won't work with a level loaded event because the player hasn't spawned yet.

  6. #6
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    43

    Default

    Thank you everybody, your help is greatly appreciated.
    I used the following, it works with New Action > Player > Player spawned as well as Level loaded linking the Level reset as shown bellow.



    Thank you

  7. #7
    MSgt. Shooter Person
    Join Date
    Jul 2010
    Location
    Hollywood, CA
    Posts
    85

    Default

    Another way that should be mentioned is through editing the UTPawn.uc file.

    In your UDK folder, go to ..\Development\Src\UTGame\Classes\UTPawn.uc

    After opening, do a control+F and in the find box type "GroundSpeed"

    There should be 4 occurrences of the word if you're using default UT code, but it's somewhere around line 5460. This is what's surrounding that line:

    WalkingPct=+0.4
    CrouchedPct=+0.4
    BaseEyeHeight=38.0
    EyeHeight=50.0
    GroundSpeed=300.0
    AirSpeed=325.0
    WaterSpeed=220.0
    DodgeSpeed=600.0
    DodgeSpeedZ=295.0
    AccelRate=2048.0
    JumpZ=450.0
    CrouchHeight=29.0
    CrouchRadius=21.0
    WalkableFloorZ=0.78
    GroundSpeed controls the speed of your character movement. Lower that number to slow him down. This is also important to mention because as you can see, it's easy to edit a lot of other properties surrounding the player. All without trying to figure out which kismet nodes and sequences and console commands need tied together.

    Note for clarification: after editing this file you have to close your UDK and restart it. It will ask you to rebuild scripts - click Yes. After it finishes, restart the editor a 2nd time to load it up with the changes.

  8. #8
    MSgt. Shooter Person
    Join Date
    Oct 2010
    Posts
    105

    Default

    awesome! nice info ...learn something new today..

    thanks guys

  9. #9
    MSgt. Shooter Person
    Join Date
    Feb 2011
    Location
    Leicester, England
    Posts
    97
    Gamer IDs

    Gamertag: uk dry

    Default

    Quote Originally Posted by Zach Lehman View Post
    Another way that should be mentioned is through editing the UTPawn.uc file.

    In your UDK folder, go to ..\Development\Src\UTGame\Classes\UTPawn.uc

    After opening, do a control+F and in the find box type "GroundSpeed"

    There should be 4 occurrences of the word if you're using default UT code, but it's somewhere around line 5460. This is what's surrounding that line:



    GroundSpeed controls the speed of your character movement. Lower that number to slow him down. This is also important to mention because as you can see, it's easy to edit a lot of other properties surrounding the player. All without trying to figure out which kismet nodes and sequences and console commands need tied together.

    Note for clarification: after editing this file you have to close your UDK and restart it. It will ask you to rebuild scripts - click Yes. After it finishes, restart the editor a 2nd time to load it up with the changes.
    Very good information thank you.

  10. #10
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    43

    Default

    Thank you Zach

  11. #11

    Default

    I believe the June update has broken this!

    I had the Kismet->ConsoleCommand solution set up.

    It seems that the console command does not work (even in game) anymore.

    I know they removed the "ut3" movement (running at maniac speeds, double jump etc)

    Anyone else experiencing this?!

  12. #12

    Default

    Also it seems that "Play Announcement" is not functioning either.

    I had it set up to where you could enter a trigger volume and text would appear on-screen.

    Considering making a bug report.

  13. #13
    Prisoner 849
    Join Date
    Feb 2010
    Posts
    957

    Default

    Quote Originally Posted by Alexotronic View Post
    I believe the June update has broken this!

    I had the Kismet->ConsoleCommand solution set up.

    It seems that the console command does not work (even in game) anymore.

    I know they removed the "ut3" movement (running at maniac speeds, double jump etc)

    Anyone else experiencing this?!
    Console commands still work fine for me.

  14. #14

    Default

    Not working for me either, editing the values in UTPawn.uc doesn't make a difference either, any progress here?

  15. #15
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,103

    Default

    Quote Originally Posted by Alexotronic View Post
    Also it seems that "Play Announcement" is not functioning either.

    I had it set up to where you could enter a trigger volume and text would appear on-screen.

    Considering making a bug report.
    Are you using the default gametype the newer versions of UDK start you in? You have to go to view>world properties and change the gametype to one that has a HUD. Without a HUD you won't see those announcements.

  16. #16

    Default

    Quote Originally Posted by Zach Lehman View Post
    Another way that should be mentioned is through editing the UTPawn.uc file.

    In your UDK folder, go to ..\Development\Src\UTGame\Classes\UTPawn.uc

    After opening, do a control+F and in the find box type "GroundSpeed"

    There should be 4 occurrences of the word if you're using default UT code, but it's somewhere around line 5460. This is what's surrounding that line:



    GroundSpeed controls the speed of your character movement. Lower that number to slow him down. This is also important to mention because as you can see, it's easy to edit a lot of other properties surrounding the player. All without trying to figure out which kismet nodes and sequences and console commands need tied together.

    Note for clarification: after editing this file you have to close your UDK and restart it. It will ask you to rebuild scripts - click Yes. After it finishes, restart the editor a 2nd time to load it up with the changes.

    Look everywhere for this information thx zach!

  17. #17
    Skaarj
    Join Date
    Jul 2012
    Location
    Nottingham
    Posts
    21
    Gamer IDs

    Gamertag: XxSaveMetalxX

    Default

    The console command doesn't work for me. My speed doesn't change no matter what I set it as.
    College FMP http://forums.epicgames.com/threads/...olby-Bloodline
    Please check it out and give the most critical evaluation possible!

  18. #18
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Location
    France
    Posts
    74

    Default

    I think it must be a problem with orthography. Write god instead of setspeed : it's the God Mod and it works easily

  19. #19
    MSgt. Shooter Person
    Join Date
    May 2012
    Posts
    38

    Default

    I will post this, maybe it's not the problem or maybe it is I noticed that if you use any console command with number like e.g. this - setspeed 0.3 - it won't work. But if you write setspeed 0.30 - it will. Maybe it'll help you. [edit] also may sure you connected player variable to console command node (hold P and click LMB on "Target")
    Last edited by Rapscallion; 08-14-2012 at 06:06 PM.

  20. #20
    Skaarj
    Join Date
    Jul 2012
    Location
    Nottingham
    Posts
    21
    Gamer IDs

    Gamertag: XxSaveMetalxX

    Default

    Quote Originally Posted by Rapscallion View Post
    I will post this, maybe it's not the problem or maybe it is I noticed that if you use any console command with number like e.g. this - setspeed 0.3 - it won't work. But if you write setspeed 0.30 - it will. Maybe it'll help you. [edit] also may sure you connected player variable to console command node (hold P and click LMB on "Target")
    Tried that to no avail. It seems to only have a problem with setspeed. I've tried setsensetivity and it works fine and FOV aswell.
    College FMP http://forums.epicgames.com/threads/...olby-Bloodline
    Please check it out and give the most critical evaluation possible!

  21. #21

    Default

    Hi, I tying to change the walking speed for a university project running may 2012. I have tried the ways shown in this thread but non seem to work the player moves at exactly the same way. Anybody got any Ideas?

  22. #22
    MSgt. Shooter Person
    Join Date
    Oct 2011
    Posts
    349

    Default

    If you are using the default game type that comes up when you open the UDK, you can't change walking speed of that one. However, even the console command setspeed works with UTGame.

  23. #23

    Default

    Quote Originally Posted by Jacky View Post
    If you are using the default game type that comes up when you open the UDK, you can't change walking speed of that one. However, even the console command setspeed works with UTGame.
    Thanks that did it. I have also managed to get rid of the gun and the HUD. Bit off thread subject but once the player is walking slower how do I change the sound?

  24. #24

    Default

    Hey guys, this seems to be a recurring problem so i thought i'd post my solution

    If you still want to use the SimpleGame mode for your map (under World Properties), you can edit the player move speed my changing the SimplePawn.uc class found in UDK\(version)\Development\Src\UDKBase\classes.

    In that file there should be some lines about 1/3rd of the way through that read:

    // Set ground speed
    GroundSpeed = CastlePawnSpeed;
    AccelRate = CastlePawnAccel;

    You can replace "CastlePawnSpeed" with your own value, the default speed seems to be around 290, so go higher or lower as you see fit. I assume this variable is set and controlled in another part of the class (or another class) but I haven't been able to find it yet. But hard coding the value here should work

  25. #25
    MSgt. Shooter Person
    Join Date
    Jan 2013
    Posts
    49

    Default

    Quote Originally Posted by Jesterofthesky View Post
    Hey guys, this seems to be a recurring problem so i thought i'd post my solution

    If you still want to use the SimpleGame mode for your map (under World Properties), you can edit the player move speed my changing the SimplePawn.uc class found in UDK\(version)\Development\Src\UDKBase\classes.

    In that file there should be some lines about 1/3rd of the way through that read:

    // Set ground speed
    GroundSpeed = CastlePawnSpeed;
    AccelRate = CastlePawnAccel;

    You can replace "CastlePawnSpeed" with your own value, the default speed seems to be around 290, so go higher or lower as you see fit. I assume this variable is set and controlled in another part of the class (or another class) but I haven't been able to find it yet. But hard coding the value here should work
    Another suggestion: if you're aiming for something that can be controlled through Kismet (switch from running to walking and vice-versa, or using a custom value) you can create a custom Kismet node that acts over the Player's Pawn. Basically, just add the name of your Walk/Run function to the "HandlerName" property in your new Kismet node, and in your Pawn class you set GroundSpeed to the values you want.

    Note that you can also achieve this by setting the GroundSpeed directly in Kismet (Actor -> Set Property), but this will give you a warning in the Map errors since it's only meant for prototyping...
    Last edited by goncalofsilva.25; 04-17-2013 at 06:53 AM.


 

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.