Displays a GUI panel to a player.
- The player to show the GUI to.
- A GUI_PANEL_* constant specifying the panel to display. Will not work with GUI_PANEL_COMPASS.
Spawn a GUI panel for the client that controls oPC. Nothing happens if oPC is not a player character or if an invalid value is used for nGUIPanel.
For the original GUI panel, GUI_PANEL_PLAYER_DEATH, you probably are looking for PopUpDeathGUIPanel which contains at least some options for it - such as sHelpString to allow you to alter what it says on it.
NWN:EE added the option to pop up more GUI panels; see GUI_PANEL_* for a list. You might want to pop these up intentionally for particular reasons at particular moments, such as in combination with a OnPlayerTarget event which needs to target an item in your inventory. Or you might disable the GUI panel with SetGuiPanelDisabled and either contextually pop it up (see OnPlayerGuiEvent and GUIEVENT_DISABLED_PANEL_ATTEMPT_OPEN) or pop up using a new button or action.
author: Tom Cassiotis, editor: Lilac Soul