#Revive
7 messages · Page 1 of 1 (latest)
What should I add to the code so that I can revive a person even if he can't revive himself? (he's on a timer)
if (selectedPlayers.TryGetValue(uPlayer.CSteamID, out UnturnedPlayer targetPlayerRevive)) {
player.life.askRespawn(targetPlayerRevive.CSteamID, false);
}
I’d say find the timer check and patch that method to jump that, and potentially find a way to check if its from your plugin, and return true in case it not
But the timer is located in the game itself I can not rewrite Unturned itself of course it is possible to bypass through Harmony possible but I do not know how
Tutorials exist
one sec
In this tutorial I explain how to use Harmony to patch existing game code.
Playlist: https://youtube.com/playlist?list=PLXLt7zu34iHFzZVDzZpvareujNqbJiypj
Mod I used as showcase: https://www.nexusmods.com/mountandblade2bannerlord/mods/3729?tab=description
Great tutorials on the first step to creating a mod from scratch:
Written: https://docs....