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

Player dies at spawn everytime a script used

broken avatar :(
Created 9 years ago
by Quark
0 Members and 1 Guest are viewing this topic.
976 views
broken avatar :(
×
broken avatar :(
Location: pt
Date Registered: 6 September 2014
Last active: 6 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Quark's Groups
Quark's Contact & Social Links
So, I made a simple script:

Code Snippet
Plaintext
Function damage()
{

trigger = GetEnt("damage_trigger", "targetname");

while(1)
{
self waittill("trigger", ent);
ent DoDamage(2, ent.origin);
break;
wait(2);

}


}

But everytime I use the map, I die instantly at spawn.

If I remove the script, I don't die at spawn

The trigger ISN'T on the spawn area.

What is the problem?

 
Loading ...