[ACS] (Survival) ACS Excuting if the Last Player loses all lives (SEE THE NEXT PAGE)
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] (Survival) ACS Excuting if the Last Player loses all lives (SEE THE NEXT PAGE)
So i don't know if i do if the last player lost all it's lives.
Anyone can help this?
Anyone can help this?
Last edited by TaporGamingBugReport on Thu Aug 29, 2019 11:14 pm, edited 1 time in total.
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
Wire up a death script and check whether 'GetPlayerLivesLeft' returns 0.
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
I test out with 3 bots. But only one player has lost all lives and they executed the script
Can i do to check players if alive? If all players died execute the script. Should i do?
Can i do to check players if alive? If all players died execute the script. Should i do?
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
Count all players in the game and every time someone loses all lives add to a separate int (Possibly called something like DeadPlayers) and in the same death script check if DeadPlayers equals the player count.
You can get the player count by using PlayerCount().
You can get the player count by using PlayerCount().
When I consider Your heavens, the work of Your fingers, The moon and the stars, which You have ordained; What is man that You take thought of him, And the son of man that You care for him? (Psalms 8:3-4, NASB)
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.
I also have a Discord server for my projects.
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.
I also have a Discord server for my projects.
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
Idk why i do this.
Full code?
Full code?
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
Code: Select all
int DeadPlayers; //This is a script-scope variable.
Script "Suvival_Death" DEATH
{
if(PlayerIsSpectator(PlayerNumber()) == 2) //This checks if the player ran out of lives
{
DeadPlayers++;
}
if(DeadPlayers >= PlayerCount()) //This checks if all players are dead.
{
//do whatever you need to do here
}
}
When I consider Your heavens, the work of Your fingers, The moon and the stars, which You have ordained; What is man that You take thought of him, And the son of man that You care for him? (Psalms 8:3-4, NASB)
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.
I also have a Discord server for my projects.
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.
I also have a Discord server for my projects.
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
It's not working
Fix?
Fix?
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss
[ACS] Re: (Survival) ACS Excuting if the Last Player loses all lives
Oh it works. but...
Still buggy
Could you please to fix this?
Still buggy
Could you please to fix this?
-
- Posts: 49
- Joined: Mon Apr 30, 2018 9:00 am
- Clan: DoomBreakerMadness
- Clan Tag: doombreakermdnss