ItsMods

Full Version: Combine self and level waittills
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
PHP Code:
Waypoint(P)    // CREDS TO PUSSUH
{
    
NemWay NewClientHudElem(self);
    
NemWay.P.origin[0];
    
NemWay.P.origin[1];
    
NemWay.P.origin[2];
    
NemWay setShader("waypoint_kill");
    
NemWay setWaypoint(true,"waypoint_kill");
    
NemWay setTargetEnt(P);
    
    for(;;)
    {
        
self waittill_any("death""disconnect"); 
        
level waittill("SECRET_ANNOUNCEMENT"player); 
// I want to combine these two waittills, into one (or an alternative), so if any of the events are triggered, and if player == P, the element will be destroyed. How?
        
        
if(player == P)
        {
            
NemWay destroy();
            return;
        }
    }

I have no idea what you're talking about. What do you want exactly?
Nvm figured out something. Thanks.
glad I could help.

Troll
[Image: avatar_197.png] brotherhood Fuck yea!
lol @pussuh
OMA
(09-17-2011, 12:11)Yamato Wrote: [ -> ]OMA

(09-17-2011, 12:14)Lemon Wrote: [ -> ]
(09-17-2011, 12:11)Yamato Wrote: [ -> ]OMA sucks

(09-17-2011, 13:14)AZUMIKKEL Wrote: [ -> ]
(09-17-2011, 12:14)Lemon Wrote: [ -> ]
(09-17-2011, 12:11)Yamato Wrote: [ -> ]OMA
OMA
OMA

Pages: 1 2