ItsMods
Help level waittill("event" or " this event"); - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help level waittill("event" or " this event"); (/Thread-Help-level-waittill-event-or-this-event.html)



level waittill("event" or " this event"); - Puffiamo - 07-11-2011

Hey guys there is a way to do this?

level waittill("event" or "that event");


RE: level waittill("event" or " this event"); - rotceh_dnih - 07-11-2011

level notify("event" or "that event");


RE: level waittill("event" or " this event"); - Puffiamo - 07-11-2011

(07-11-2011, 15:35)rotceh_dnih Wrote: level notify("event" or "that event");

??? is this the answer or you are kidding me?
mmm Perhaps we have not understood, I want to know the syntax to wait for this notification or that other


RE: level waittill("event" or " this event"); - Madnesslink5 - 07-11-2011

HE is being serious..

PHP Code:
randomcode() { self waittill("death") if(self = level.importantperson) { level notify("important_person_dead") } } morerandom() { level waittill("important_person_dead") ... }



RE: level waittill("event" or " this event"); - Pozzuh - 07-11-2011

Use this function
Code:
waittill_any( string1, string2, string3, string4, string5 ) { assert( IsDefined( string1 ) ); if ( IsDefined( string2 ) ) self endon( string2 ); if ( IsDefined( string3 ) ) self endon( string3 ); if ( IsDefined( string4 ) ) self endon( string4 ); if ( IsDefined( string5 ) ) self endon( string5 ); self waittill( string1 ); }


Just put #include common_scripts\utility; on top of your script file and then use waittill_any("bla","blaa");


RE: level waittill("event" or " this event"); - rotceh_dnih - 07-11-2011

lol that will hurt his head i think


RE: level waittill("event" or " this event"); - Justin - 07-11-2011

It even hurt pozzuh's head for some while xd


RE: level waittill("event" or " this event"); - Pozzuh - 07-11-2011

(07-11-2011, 16:19)Justin Wrote: It even hurt pozzuh's head for some while xd

EVEN ME, yes




RE: level waittill("event" or " this event"); - AZUMIKKEL - 07-11-2011

self waittill_any("death", "disconnect", "3", "4", "5");

red = optional