ClientChickynoid
This item only works when running on the client. Client
A Chickynoid class that handles character simulation and command generation for the client There is only one of these for the local player
Functions
new
Constructs a new ClientChickynoid for the local player, spawning it at the specified position. The position is just to prevent a mispredict.
HandleNewState
ClientChickynoid:
HandleNewState
(
state:Â
table
,
--
The new state sent by the server.
lastConfirmed:Â
number
,
--
The serial number of the last command confirmed by the server.
serverTime:Â
number
,
--
Time when command was confirmed
serverHealthFps:Â
number
,
--
The current FPS the server is running at
networkProblem:Â
any
--
Indicates any known network problem
) →Â
(
)
The server sends each client an updated world state on a fixed timestep. This handles state updates for this character.