Skip to main content

LandmarkDiscoverZone

A class in Root.Township, Alta.Map.

A sphere trigger that marks a landmark as discovered for any player who walks into it. Server only; the collider is turned off on clients.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Landmark landmarkThe landmark this zone discovers.
private SphereCollider sphereColliderThe trigger sphere. Its radius is saved and loaded.

Methods​

MemberWhat it is
override void Initialize()Turns the sphere collider off when not running on the server.
1 private and internal method
MemberWhat it is
private void OnTriggerEnter(Collider other)Server: when a player's character enters, discovers landmark for that player.