BootPC(object, string)
From NWN Lexicon
Jump to navigationJump to search
Abruptly kicks a player off a multi-player server.
void BootPC(
object oPlayer,
string sReason = ""
);
Parameters
- oPlayer
- The PC object of a player to boot.
- sReason
- Optional. Override text to display to the user showing the reason for the boot.
Description
BootPC does what it sounds like - abruptly kicks a PC out of a multi-player game. The PC gets no option to save.
As of NWNEE version 8158, this function now takes an optional parameter that allows the scripter to override the message displayed to the player.
Remarks
If a PC rejoins immediately, they will start where they left off. BootPC has no effect in single-player mode.
Version
1.22
Example
// A trigger designed to annoy OnEnter:
void main()
{
BootPC(GetEnteringObject());
}
See Also
| functions: | GetPCPublicCDKey() |
author: Iskander Merriman, editor: Jeremy Spilinek