I have only been learning scripting for a very short time. That being said could someone please walk me though how to shut off the respawn button and make loading your last save the only option asides from waiting for someone to cast resurrection ?
Thanx in advance
Hi Katana
See the standard OnDeath script NW_O0_DEATH:
It has this section, where if the player dies and the current area has certain tags, it pops up the death panel without the respawn button. It’s the “PopUpDeathGUIPanel(oPlayer,FALSE, TRUE, 66487));”
you can change the if(xxxx) part to whatever parameter you want to check for.
string sArea = GetTag(GetArea(oPlayer));
if (sArea == "M4Q1D2" || sArea == "M3Q3C" || sArea == "MAP_M1Q6A")
{
// * MAY 2002: Just popup the YOU ARE DEAD panel at this point
DelayCommand(2.5, PopUpDeathGUIPanel(oPlayer,FALSE, TRUE, 66487));
return;
}
1 Like
Replaced with your script . Perfect thank you so much
Just incase anyone ever looks for this topic solution it’s easier then any of us came up with here .
In the last line of the on_death script you’ll see this line
DelayCommand(2.5, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH));
Just add //
Like this
//DelayCommand(2.5, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH));
And respawn is shut off and all you can do is get a res or reload the last save .
Slowly learning
Katana Nexus