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

Do something when a player goes down

broken avatar :(
Created 9 years ago
by DidUknowiPwn
0 Members and 1 Guest are viewing this topic.
1,994 views
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 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
_zombiemode.gsc
Code Snippet
Plaintext
level.playerlaststand_func = ::player_laststand;
replace with
Code Snippet
Plaintext
level.playerlaststand_func = ::onPlayerLastStand;
add this function anywhere
Code Snippet
Plaintext
onPlayerLastStand()
{
self thread player_laststand();
IPrintLnBold(self.playername + "has been downed");
}

Notes:
This is called from a callback as an entity not a level (so that's why self works as a player).
You can handle anything related to mode in here, just do not add a loop OR call a function that can get stuck in a loop without threading it.

Last Edit: June 18, 2015, 06:19:19 pm by DidUknowiPwn

 
Loading ...