Skip to content

Scripts for beginners.

User Avatar
#253
Auto-translated
Syryus

Another related question – how can I add a feature here so that the trigger resets after a specific player loses?

function PlayerLooseCheck(pl)
while 1 do
if GetPlayerState(pl)==PLAYER_LOST then
Trigger(...trigger reset)
end
sleep(10)
end
end;

startThread(PlayerLooseCheck, PLAYER_PLAYERNUMBER)


You can do it like this, for example. Alternatively, you can attach a trigger to the event of a player losing a hero, and use that to determine if the player has lost – this would put less load on the game, but I'm not sure if this method would work.

С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________