Announcement

Collapse
No announcement yet.

COntrolling groundSpeed...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    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:

    Comment


      #3
      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".

      Comment


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

        Comment

        Working...
        X