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

Restart after player goes down

broken avatar :(
Created 8 years ago
by fanmagic
0 Members and 1 Guest are viewing this topic.
1,178 views
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 5 months ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
fanmagic's Contact & Social LinksTears Of The Fallen
I made a scipt where i use this function:
Code Snippet
Plaintext
players = get_players();
for( i = 0; i < players.size; i++ )
{
if(players[i] IsTouching( dmg )) players[i] DoDamage( 30, dmg.origin );
}

Now my problem - if a player goes down because of this script the map restarts like in SP. Hope you understand my problem.
Marked as best answer by fanmagic 6 years ago
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
I made a scipt where i use this function:
Code Snippet
Plaintext
players = get_players();
for( i = 0; i < players.size; i++ )
{
if(players[i] IsTouching( dmg )) players[i] DoDamage( 30, dmg.origin );
}

Now my problem - if a player goes down because of this script the map restarts like in SP. Hope you understand my problem.

Try using RadiusDamage.

http://ugx-mods.com/script/#core.Damage.radiusDamage
Last Edit: September 03, 2016, 12:40:23 pm by Scobalula

 
Loading ...