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 10 years ago
by fanmagic
0 Members and 1 Guest are viewing this topic.
1,469 views
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 2 years ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
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 8 years ago
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 4 months ago
Posts
1,863
Respect
Forum Rank
Zombie Destroyer
Primary Group
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
Mapper Has released one or more maps to the UGX-Mods 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 ...