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
Properties
Distance
public float Distance { get; set; }
Property Value
FieldOfViewAngle
public float FieldOfViewAngle { get; set; }
Property Value
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
PlayerObject
Use this to associate an object with this player.
public object PlayerObject { get; set; }
Property Value
Position
public Vector3 Position { get; set; }
Property Value
ViewDirection
public Vector3 ViewDirection { get; set; }
Property Value
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