-
Notifications
You must be signed in to change notification settings - Fork 186
Add a new NPC
OpenHogwarts edited this page Apr 2, 2018
·
3 revisions
-
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.
-
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)
- If your NPC is type
TalkerorQuest, set it's quest/phrase in DBSetup.csgetTalkerPhrase()||setAllQuests()