Skip to content
OpenHogwarts edited this page Apr 2, 2018 · 3 revisions
  1. List it at DBSetup.cs insertNPCs()

    Note: If you want to set patrol waypoints, use the GUI to generate them: https://www.youtube.com/watch?v=GC8x9vIplEs

    They are relative to NPC's initial position in Scene.

  2. Place it's prefab in Resources/NPC .

    Tag: NPC

    Required components: - NPC.cs - Photon View - Sphere Collider set in Trigger mode (For player detection, check NPCDetector.cs)

    Childs: - Nameplate (NPC.cs will require it)

    (check the existing prefabs for more information)

  3. If your NPC is type Talker or Quest, set it's quests/phrase in DBSetup.cs getTalkerPhrase() || setAllQuests()

Clone this wiki locally