Skip to main content

PlayerLandmark

A class in Root.Township, Alta.Map.

The map marker for a player. Which icon other players see depends on the server's PlayerLandmarkMode and friendship.

Constructors​

MemberWhat it is
PlayerLandmark()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private LandmarkIcon friendIconIcon shown to players who are friends with this player.
private PlayerController playerControllerThe player this marker follows.

Methods​

MemberWhat it is
override void CustomizeIcon(MarkerInfo info, Player target)Hides the icon if the mode is Hidden, shows friendIcon to friends, hides it from non-friends in FriendsOnly mode, else the normal icon.