mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2026-10-18 16:43:33 +00:00
waittillframeend for event
This commit is contained in:
1 parent
3f0ebe8aa3
commit
db9e179b8d
1 file changed
+11
-1
@@ -367,12 +367,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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user