Generic selectors
Exact matches only
Search in title
Search in content
Search in project

Setting up Resource Nodes

Resource Nodes are set up in the Unity Editor then saved to the Content Database with the Atavism Editor.

Creating Resource Drops

The first step is to create Resource Drops which define the item and chance of a drop from a Resource Node. Resource drops are prefabs found in the Resource/Content/ResourceDrops folder. Make a duplicate of one of the existing ones, rename it and set the values as desired. The min/max represent the minimum and maximum amounts the player might get from this node (randomized).

Creating the Resource Nodes

Resource nodes are GameObjects that exist in a Unity Scene. Place your Game Object in the scene and add a Resource Node component.

Add the Resource Drops you want to the Node and set the properties as follows:

  • Resource Count (how many times it can be harvested before it despawns)
  • Harvest Tool (what item type the player must have equipped to harvest from this node)
  • Skill Type (the skill associated with harvesting from this node)
  • Req Skill Level (how high the players skill needs to be)
  • Skill Level Max (the players skill will no longer increase from this node once it reaches this level)
  • Refresh Duration (how long it takes the node to respawn)
  • Cursor Icon (icon of cursor when you hover over the resource node)
  • Highlight (if checked then when you hover over resource node Atavism will try to change color of texture to selected value in Highlight Colour
  • Harvest Coord Effect (the coord effect (animation/special effect) to play for when the player is harvesting from the node)
  • Activate Coord Effect (the coord effect (animation/special effect) to play for when the node will be activated again after harvest)
  • Deactivate Coord Effect (the coord effect (animation/special effect) to play for when the node will be harvested and deactivated)
  • Is LOD Child (if resource node has LOD Group)

Add as many resource nodes as you want to your scene.

Saving Resources to the database

When you have your Resource Nodes added to your scene, open the Atavism Editor and go to the Resource Nodes plugin. Click on Save Nodes and wait for the “Nodes Saved” message. Now save your scene again as the Nodes would have been given an id by the database.

Restart your server and go forth harvesting those resources.

Additional Note

If you haven’t already added the ResourceLoot.cs component to your UI prefab (or GameObject in your scene), make sure it is added to see the resource loot items pop up when harvesting.