mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Hide and Seek is_player_seeker
and set_player_seeker
(#379)
* HnS globals * no need for global index
This commit is contained in:
parent
677f4591dc
commit
b1662a3338
1 changed files with 10 additions and 0 deletions
|
@ -537,3 +537,13 @@ for i = 0, (MAX_PLAYERS - 1) do
|
|||
hook_on_sync_table_change(gPlayerSyncTable[i], "seeking", i, on_seeking_changed)
|
||||
network_player_set_description(gNetworkPlayers[i], "seeker", 255, 64, 64, 255)
|
||||
end
|
||||
|
||||
_G.HideAndSeek = {
|
||||
is_player_seeker = function (playerIndex)
|
||||
return gPlayerSyncTable[playerIndex].seeking
|
||||
end,
|
||||
|
||||
set_player_seeker = function (playerIndex, seeking)
|
||||
gPlayerSyncTable[playerIndex].seeking = seeking
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue