Difference between revisions of "GetIsPlayerConnectionRelayed"

From NWN Lexicon
Jump to: navigation, search
(Initial page creation)
(No difference)

Revision as of 07:17, 26 March 2018

Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Gets whether the player is connected over a relay (instead of directly).

int GetIsPlayerConnectionRelayed(
    object oPlayer
);

Parameters

oPlayer
The PC whose player should be checked.

Description

Get if oPlayer is currently connected over a relay (instead of directly). Returns FALSE for any other object, including OBJECT_INVALID.

Remarks

According to Beamdog:

We added experimental support to carry your connection over authenticated relays, hosted on our end. This is fully automatic and transparent for both players (a relay connection will be chosen if all other attempts fail) and server hosts (servers and scripting will still “see” the actual client IP), and is meant to take care of all remaining connection issues that cannot be handled with UDP hole punching.

Version

1.74.8162

Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.