21 lines
511 B
Plaintext
21 lines
511 B
Plaintext
/**
|
|
* Script for handling PlayAgain and actually restarting
|
|
*
|
|
* Copyright (C) 2002-2003 Jim Woodgate - woody@realtime.net
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
int numPlayers = GetLocalInt(OBJECT_SELF, "BJNUMPLYRS");
|
|
int currentPlayer = GetLocalInt(OBJECT_SELF, "BJCURRENTPLYR");
|
|
currentPlayer++;
|
|
if (currentPlayer < numPlayers) {
|
|
SetLocalInt(OBJECT_SELF, "BJCURRENTPLYR", currentPlayer);
|
|
SignalEvent(OBJECT_SELF, EventUserDefined(215));
|
|
}
|
|
else {
|
|
SignalEvent(OBJECT_SELF, EventUserDefined(214));
|
|
}
|
|
}
|
|
|