NWN2Wiki
Register
Advertisement


Broadcast a message to all players[]

In general, use this function,

void MessageAll(string sMessage)
{
    object oPlayer = GetFirstPC();
    while(GetIsObjectValid(oPlayer))
        {
        SendMessageToPC(oPlayer,sMessage);
        oPlayer = GetNextPC();
        }
}
void main()
{
    MessageAll("Hello and Welcome to my Module");
}
Advertisement