Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    236

    Default COntrolling groundSpeed...

    Is there a simple way to set the groundspeed of a player through a keypress? Like, depending on how many times I hit a key, the groundspeed goes up...

  2. #2
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    236

    Default

    Ug...I figured it out...I'll post my code later. It's as simple as setting the player.pawn.groudspeed to equal a different number...

    :bulb:

  3. #3
    MSgt. Shooter Person
    Join Date
    Sep 2004
    Posts
    98

    Default

    or an Exec Function? Like:

    Code:
    class coolpawn extends xpawn;
    
    var() sound ChangeGroundSpeedSound;
    
    Exec Function ChangeGroundSpeed()
    {
       Groundspeed +10;
       PlaySound(ChangeGroundSpeedSound, SLOT_Misc, TransientSoundVolume,,TransientSoundRadius,, false);
    }
      
    defaultproperties
    {
      ChangeGroundSpeedSound='Coolarsesounds.CoolSound'
    }
    Not sure if this would work, but if it did you would have to bind ChangeGroundSpeed to a key and everytime you pressed the binded key your speed would increase by 10. To bind type in console: "set input (key) ChangeGroundSpeed".

  4. #4
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    236

    Default

    Yeah. Even better. That might make the code a bit cleaner too. Thanx.


 

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.