Scripts / [SOLVED] Script for winzone with 2 conditions (timer and kill amount)

Author
Message
gaku95
3
Years of Service
User Offline
Joined: 2nd Dec 2020
Location: Buenos Aires, Argentina
Posted: 4th Dec 2020 03:15
Hi, im looking for a winzone script that has 2 conditions:

-when player reaches "x" amount of kills jumps to next level
-when time runs out player jumps to next level

So what ever happens first the player jumps to next level.
I am trying to use these scripts but cant find a way to combine them.

Timer script:


killcount:

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Dec 2020 12:21
This post has been marked by the post author as the answer.
you don't really need to combine them, having both running separately is fine as whichever one triggers first will still work for you.
if you're asking how to make the countdown change level you need to add the code when the timer reaches 0
i.e.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
gaku95
3
Years of Service
User Offline
Joined: 2nd Dec 2020
Location: Buenos Aires, Argentina
Posted: 4th Dec 2020 15:33
Thank you for your response smallg. I have tried doing what you say but for some reason it wont work. The timer shows in the screen but when it reaches 00:00 nothing happens.
(Im using the "ifused" propertie)

Maybe i'm doing something wrong with the script code.

here is the script for the timer:

PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 5th Dec 2020 10:52
you are testing this in standalone build? nothing will happen in test game mode as it doesn't allow multiple level testing
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
gaku95
3
Years of Service
User Offline
Joined: 2nd Dec 2020
Location: Buenos Aires, Argentina
Posted: 5th Dec 2020 13:08
You are right, just tested it again in standalone game and it worked. Don't know what went wrong the first time...

Thank you!!
PM

Login to post a reply

Server time is: 2024-04-20 16:59:56
Your offset time is: 2024-04-20 16:59:56