Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Sprinting variables and values

Monks
Guest
Quote
2023-07-06 11:37:46

Guys how can i do a finite run system and after some secs the character can run again as in gta


VP
Guest
Quote
2023-07-06 12:29:02

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


VP
Guest
Quote
2023-07-06 12:31:32

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


Monks
Guest
Quote
2023-07-06 14:12:57

Tnks 4 ur extreme help man, you're a boss


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact