Announcement

Collapse
No announcement yet.

COntrolling groundSpeed...

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

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

    Leave a comment:


  • replied
    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".

    Leave a comment:


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

    Leave a comment:


  • started a topic COntrolling groundSpeed...

    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...
Working...
X