PHP Code:
Waypoint(P) // CREDS TO PUSSUH
{
NemWay = NewClientHudElem(self);
NemWay.x = P.origin[0];
NemWay.y = P.origin[1];
NemWay.z = 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;
}
}
}