mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
waittillframeend bot events
This commit is contained in:
parent
a37aadfc2b
commit
26a5adae13
@ -356,12 +356,22 @@ BotStopMoving( what )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Waits till frame end so that if two notifies happen in the same frame, the other will not be missed.
|
||||||
|
*/
|
||||||
|
BotNotifyBotEvent_( msg, a, b, c, d, e, f, g )
|
||||||
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
waittillframeend; // wait for the waittills to setup again
|
||||||
|
self notify( "bot_event", msg, a, b, c, d, e, f, g );
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Notify the bot chat message
|
Notify the bot chat message
|
||||||
*/
|
*/
|
||||||
BotNotifyBotEvent( msg, a, b, c, d, e, f, g )
|
BotNotifyBotEvent( msg, a, b, c, d, e, f, g )
|
||||||
{
|
{
|
||||||
self notify( "bot_event", msg, a, b, c, d, e, f, g );
|
self thread BotNotifyBotEvent_( msg, a, b, c, d, e, f, g );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user