Creating your first Cell
Jump to navigation
Jump to search
In this tutorial we're going to create a new Cell, in particular, a new Interior Cell. It will represent the Interior of a shack situated in the Cell "Virrihael(0,-2)".
Primer on Cells
In this section we're going to quickly analyze how a Cell is composed.
Focus on the "Cell View" window and select as Worldpsace "Virrhael", then load the Cell with ID "Virrihael(0,2)".
The first thing that you should notice straight away, it's that it is the Cell present in the demo, and more in particular it's the house we go and search with Ryan in the Demo, during the quest "The Southern Harvest", playable by joining The King's faction.
Let's take a look in the Hierarchy. Every cell is composed of at least those GameObject:
- CellInfo: Contains the script responsaible for storing the Information of a Cell, such as the Cell file, the Cell Entry, all the doors, paths, Action Points etc. present in the Cell.
- Entry: Represents the Entry Point of the cell, it is usually always in the middle of it.
- Structures: Is just a GameObject that contains every structure of the Cell, such as houses, Items in World, props and so on and so forth.
- Paths: Contains all the NPC Paths present in this Cell.
- AI_Container: Contains all the AI placed in this cell.
- CreatedItemsT: Is just a GameObject that will contain every item the Player will create inside this cell by dropping them into the Inventory or dragging them to this cell from others.
- Navmesh: Is the GameObject who has the Component responsabile to generating the Navmesh of the cell.