Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Guys how can i do a finite run system and after some secs the character can run again as in gta |
||||
|
Before First Draw (and reload): Set Variable "Run" =0 Before First Draw (and reload): Set Variable "Fatigue" =0 When "Shift Key" is pressed down: Set Variable "Run" =1 When "Shift Key" is released: Set Variable "Run" =0 Every few seconds (1000ms): If Variable "Run" =0, Set Variable "Fatigue" -1 Every few seconds (1000ms): If Variable "Run" =1, Set Varible "Fatigue" +1 Every few seconds (30ms): If Variable "Fatigue" =0, Set SpecialVariable (hash sign)player.movementspeed =0 Every few seconds (30ms): If Variable "Fatigue" =100, Set SpecialVariable (hash sign)player.movementspeed = 10 |
||||
|
Of, I forgot - you also need this.... Every few seconds (30ms): If Variable "Fatigue" <0, Set Variable "Fatigue =0 Every few seconds (30ms): If Variable "Fatigue" >100, Set Variable "Fatigue" =100 |
||||
|
Tnks 4 ur extreme help man, you're a boss |
|