Difference between revisions of "Additional Prefabs"
Jump to navigation
Jump to search
→Mining Ore
imported>Bannor9 |
imported>Bannor9 |
||
Line 28: | Line 28: | ||
Next: place a furniture so the player will use the appropriate mining animation. There are three mining furnitures we can use: '''PickaxeMiningFloorMarker''', '''PickaxeMiningTableMarker''' & '''PickaxeMiningWallMarker'''. Find these by filtering for '''Mining'''. The Wall, Floor, or Table portion of the name describes where the pickaxe will hit in the animation. We are going to place a PickaxeMiningWallMarker on the ground near our Ore then move and rotate it so the bottom is roughly even with the floor and wall area of the marker is slightly embedded in the Ore Vein. Be sure to test these in game to visually spot-check your marker placement. | Next: place a furniture so the player will use the appropriate mining animation. There are three mining furnitures we can use: '''PickaxeMiningFloorMarker''', '''PickaxeMiningTableMarker''' & '''PickaxeMiningWallMarker'''. Find these by filtering for '''Mining'''. The Wall, Floor, or Table portion of the name describes where the pickaxe will hit in the animation. We are going to place a PickaxeMiningWallMarker on the ground near our Ore then move and rotate it so the bottom is roughly even with the floor and wall area of the marker is slightly embedded in the Ore Vein. Be sure to test these in game to visually spot-check your marker placement. | ||
Next, double click the furniture marker, | Next, double click the furniture marker, then choose to "Activate Parents" and add a new link to the ore vein. | ||
The final thing we need to do is create a | The final thing we need to do is create a "Linked Ref" from the Ore Vein to the Mining Furniture, by double clicking the ore vein, and choosing the "Linked Ref" button then adding the link to the furniture.. This allows the ore to know which furniture to use. If you don't have a furniture hooked up, the ore will automatically appear ''depleted'' when you run the game since it would be frustrating to find ore that you can't mine. | ||
By using a variety of ore shapes and rotating them in different ways you can avoid having your mining area appear to regular and the three mining furnitures allow you to use them just about anywhere. Don't forget to place a pickaxe (weapPickaxe) nearby if you want to be certain your player can harvest the ore! | By using a variety of ore shapes and rotating them in different ways you can avoid having your mining area appear to regular and the three mining furnitures allow you to use them just about anywhere. Don't forget to place a pickaxe (weapPickaxe) nearby if you want to be certain your player can harvest the ore! |