Table of Contents

Class NetworkPlayer

Namespace
Netick
Assembly
Netick.dll

Represents a network player, which can be either a local player (representing this sandbox) or a remote connection (representing a connected client)).

public abstract class NetworkPlayer
Inheritance
NetworkPlayer
Derived
Inherited Members

Fields

Engine

public readonly NetickEngine Engine

Field Value

NetickEngine

Properties

Distance

public float Distance { get; set; }

Property Value

float

FieldOfViewAngle

public float FieldOfViewAngle { get; set; }

Property Value

float

PlayerId

The networked index of this player.

Note: it returns -1 on the client for the local player when not connected to a server.

Note: the server player always has Id 0.

public int PlayerId { get; }

Property Value

int

PlayerObject

Use this to associate an object with this player.

public object PlayerObject { get; set; }

Property Value

object

Position

public Vector3 Position { get; set; }

Property Value

Vector3

ViewDirection

public Vector3 ViewDirection { get; set; }

Property Value

Vector3

Methods

AddInterestBoxArea(NetickBounds)

public void AddInterestBoxArea(NetickBounds box)

Parameters

box NetickBounds

AddInterestGroup(InterestManagementGroup)

public void AddInterestGroup(InterestManagementGroup group)

Parameters

group InterestManagementGroup

AddInterestGroup(int)

public void AddInterestGroup(int groupId)

Parameters

groupId int