#timer and kill counter for pvp game
41 messages · Page 1 of 1 (latest)
- Name your variables
- Set timer to
Timer + Delta Time - Dont use Cv1 game rules
If you have a custom combat system, you can record your own stats via local int variables, you can then add your text onto a custom scoreboard
What do you mean by "set timer to Timer+delta time?
By setting the variable to itself + delta time, it will go up by 1 per second
"1 second per second"
Alright, I see what you mean (I think) but I'm trying to get it to count down, not up
Do I just do subtract instead?
Then set it to itself - delta time
I don't think I can subteact the int variable timer with the delta time
Am I missing something?
@graceful dragon
You shouldnt be using an int variable for a timer
The HUD element needs an int for the number input
Maybe if I put the timer outside the HUD?
Like on top of the map
For all to see
Ok
Divide the timer value by the max timer value (If default timer value is 60 seconds, divide by 60)
Current Timer / Max Time = Percentage of time left
Multiply this value by 1,000,000 and then ceil to int
Set the max value of the HUD to 1,000,000
Set the value of the HUD to the ceil to int value
Tried following your instructions but didn't quite work, timer did go down but it was from 90.000 (I believe?) And went down rapidly.
Battery ran out just as I finished but I managed to save to see what I did wrong
Tried using upper middle HUD but it said there was no max value for it so just settled for upper right
Primary and Secondary should work
they are bar values in the middle of the screen
I'd use secondary, its smaller
Ah!
It's not a number I can show, it's the value on the slider
Alright
I can live with that
Oh and on the kill counter side of things
I don't have a custom combat system, it's just normal paintball guns and normal PvP game chip
yeah gross bad
make custom game rules and combat
you dont need custom guns
just make custom combat (Health, Shield, Max Health)