Set Custom Player State

STD Library
Client Side
Only PC

Automatically upload to the sever and sync with all clients. Returns false if failed.

Declaration

func SetCustomPlayerState(customPlayer entity<Entity>, state int, out var isSuccess bool)
go

Parameters

Input

Name Type Description
Custom Player Entity A custom player
State Int Usually used to save the animation states. Get the synced state with Get Custom Player State.

Out

Name Type Description
Is Success Bool Whether the execution is successful