Get Owner

STD Library
Server Side
Both Mobile and PC

Get the player to which the entity belongs

Declaration

func GetOwner(target entity) entity<Player>
go

Parameters

Input

Name Type Description
Target entity Target entity, the entity will only synchronize with the player it belongs to

Return

Type Description
Player The player to which the target entity belongs