UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Update When A Player Downs or Bleeds Out?

broken avatar :(
Created 9 years ago
by jbird
0 Members and 1 Guest are viewing this topic.
1,204 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 4 years ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
×
jbird's Groups
I'm trying to have a message shown whenever a player downs or bleeds out but don't know exactly how to do it. This is what I've got
Code Snippet
Plaintext
grief_msg()
{
players = get_players();
for (i = 0; i < players.size; i++)
{
while( players[i].sessionstate == "spectator" || players[i] maps\_laststand::player_is_in_laststand() )
{
players = get_players();
players_alive = 0;
for( i = 0; i < players.size; i++ )
{
if( is_player_valid(players[i]) )
{
players_alive++;
}
}
if( players_alive == 1 && players.size != 1 )
{
iprintlnbold("All Enemies Down!");
wait (2.5);
iprintlnbold("Survive to Win!");
break;
}
else if( players_alive == 2 && players.size != 2 )
{
iprintlnbold("Enemy Down! [1 Remaining]");
break;
}
else if( players_alive == 3 && players.size != 3 )
{
iprintlnbold("Enemy Down! [2 Remaining]");
break;
}
else
{
return;
}
wait(0.05);
}
}
}
Can anyone help?
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 7 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Check _laststand.gsc.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 27 January 2015
Last active: 7 years ago
Posts
337
Respect
Forum Rank
Perk Hacker
Primary Group
Member
Signature
×
liamsa669's Groups
liamsa669's Contact & Social Links
I'm trying to have a message shown whenever a player downs or bleeds out but don't know exactly how to do it. This is what I've got
Can anyone help?

here:
Code Snippet
Plaintext
players[i] waittill("player_downed");
iprintlnbold(players.size-1+" left remaining");

 
Loading ...