SCRIPTING API / Multiplayer / NetworkCharacterController
NetworkCharacterController
Script access to the networked character of a player on the server: velocity and grounded state of the replicated object.
Kindclass
NamespaceKroys.EngineScripting
Members13
Source
Generated/NativeComponents.g.cs, NativeComponents.csDECLARATION
Declaration
Component access: every member takes the entity first, for example NetworkCharacterController.Has(Entity). The values are the ones the Inspector shows for this component.
Declaration
public static partial class NetworkCharacterController
REFERENCE
Members
Methods
#public static bool Has(Entity e)Whether the entity has a Network Character Controller component.
#public static bool IsEnabled(Entity e)Reads the Network Character Controller component's Enabled value of the entity.
#public static bool IsGrounded(Entity e)Reads the Network Character Controller component's Grounded value of the entity.
#public static bool IsJumpPressed(Entity e)Reads the Network Character Controller component's Jump Pressed value of the entity.
#public static float GetHeight(Entity e)Reads the Network Character Controller component's Height value of the entity.
#public static float GetRadius(Entity e)Reads the Network Character Controller component's Radius value of the entity.
#public static float GetMoveSpeed(Entity e)Reads the Network Character Controller component's Move Speed value of the entity.
#public static float GetSprintMultiplier(Entity e)Reads the Network Character Controller component's Sprint Multiplier value of the entity.
#public static float GetJumpSpeed(Entity e)Reads the Network Character Controller component's Jump Speed value of the entity.
#public static float GetGravity(Entity e)Reads the Network Character Controller component's Gravity value of the entity.
#public static float GetAirControl(Entity e)Reads the Network Character Controller component's Air Control value of the entity.
#public static Vector3 GetVelocity(Entity e)Reads the Network Character Controller component's Velocity value of the entity.
#public static void SetVelocity(Entity e, Vector3 value)Sets the Network Character Controller component's Velocity value on the entity.
Signatures
public static bool Has(Entity e) public static bool IsEnabled(Entity e) public static bool IsGrounded(Entity e) public static bool IsJumpPressed(Entity e) public static float GetHeight(Entity e) public static float GetRadius(Entity e) public static float GetMoveSpeed(Entity e) public static float GetSprintMultiplier(Entity e) public static float GetJumpSpeed(Entity e) public static float GetGravity(Entity e) public static float GetAirControl(Entity e) public static Vector3 GetVelocity(Entity e) public static void SetVelocity(Entity e, Vector3 value)
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.