Module/Vehicle Resource Usage
Sometimes, you have a resource user on a module (such as an energy weapon that uses power) that you want to connect with a resource container on a vehicle (such as the vehicle's powerplant). This is achieved using to components, the Resource Container Interfacer, and the Resource Container Linker.
Vehicle Setup
Add a Resource Container Linker component to the root transform of your vehicle
Add resource types you want to link for to the Specified Resource Types list
Module Setup
Add a Resource Container Interfacer to the root transform of the module
Set the Resource Type in the inspector
For all the resource handlers on the module (e.g. on the Weapon component) drag the Resource Container Interfacer you added above into the Resource Container field
Now the resource handlers will use the interfacer as the resource container, which will connect to an actual resource container on the vehicle.
Last updated