What's new

Solved waittill_or_timeout

Status
Not open for further replies.
F

FR34k

Newbie
Messages
21
Reaction score
2
Is there such a function? waittill_or_timeout();

or any timeout function of that sort?
 
D

dconnor

Enthusiast
Messages
755
Reaction score
187
Is there such a function? waittill_or_timeout();

or any timeout function of that sort?
Code:
//commonscripts\utility
/*
=============
///ScriptDocBegin
"Name: waittill_notify_or_timeout( <msg> , <timer> )"
"Summary: "
"Module: Entity"
"CallOn: An entity"
"MandatoryArg: <param1>: "
"OptionalArg: <param2>: "
"Example: "
"SPMP: both"
///ScriptDocEnd
=============
*/
waittill_notify_or_timeout( msg, timer )
{
self endon( msg );
wait( timer );
}
 
Status
Not open for further replies.
Top Bottom