Table of Contents

Method GetDeviceProperty

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetDeviceProperty(PlayerDeviceProperty)

Gets the specified device property/capability as advertised by the client.

public int GetDeviceProperty(PlayerDeviceProperty property)

Parameters

property PlayerDeviceProperty

The property to query.

Returns

int

The queried property value, or -1 if:
- the property was never set by the client,
- the actual value is -1,
- the player is running a older build that does not advertise device properties,
- the player has disabled sending device properties (Options/Game/Privacy).