Hide and Seek is_player_seeker and set_player_seeker (#379)

* HnS globals

* no need for global index
This commit is contained in:
PeachyPeach 2023-05-03 09:51:50 +02:00 committed by GitHub
parent 677f4591dc
commit b1662a3338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}