[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.1993619 [View]
File: 10 KB, 374x291, ab9aea86ba72c0e84617db447a4e2710.png [View same] [iqdb] [saucenao] [google]
1993619

I need some help with this ACS. I'm trying to get a working stamina system for melee weapons, each swing takes stamina, if you don't meet the stamina requirement the swing comes out slower. Stamina also should regen by itself. The problem is that I want a 3 second delay where stamina doesn't regen when you hit 0, so you can't just keep spamming the melee weapons. The code in the pic ignores the if statement and continues to regen stamina like normal even if you hit 0 stamina

Navigation
View posts[+24][+48][+96]