07-11-2011, 15:29
07-11-2011, 15:35
level notify("event" or "that event");
07-11-2011, 15:38
(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
07-11-2011, 15:42
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")
...
}
07-11-2011, 15:53
Use this function
Just put #include common_scripts\utility; on top of your script file and then use waittill_any("bla","blaa");
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");
07-11-2011, 16:06
lol that will hurt his head i think
07-11-2011, 16:19
It even hurt pozzuh's head for some while xd
07-11-2011, 16:20
07-11-2011, 21:34
self waittill_any("death", "disconnect", "3", "4", "5");
red = optional
red = optional