How to use the Production Indicator ?

In the example, there is no production indicator So I added one, but I can't get it to light up, in any of the 3 states (it is not recognized) So I build based on a FGBuildable Manufacturer, and this Production Indicator works well, but then I can't use the included M Power Info (Set Power Info), and I don't know how to remove it If I add the PowerInfo from the example, I think there is a conflict because when I test it it shows me 'No Power' How do I add this Production Indicator?
Solution:
the function is called GetProductionIndicatorStatus
Jump to solution
6 Replies
Jean Michel
Jean MichelOP4mo ago
No description
No description
Archengius
Archengius4mo ago
you need to override a function returning it's color from C++ if you want to use it on non-buildable factory
Jean Michel
Jean MichelOP4mo ago
Thanks But which function? And how to check the power connection using a FGBuildable Manufacturer?
Rex
Rex4mo ago
/** Get the connections to this factory. */
UFUNCTION( BlueprintCallable, BlueprintPure = false, Category = "FactoryGame|Factory" )
TArray< UFGFactoryConnectionComponent* > GetConnectionComponents() const;
/** Get the connections to this factory. */
UFUNCTION( BlueprintCallable, BlueprintPure = false, Category = "FactoryGame|Factory" )
TArray< UFGFactoryConnectionComponent* > GetConnectionComponents() const;
There's one function about "production indicator" in AFGBuildableFactory
Solution
Archengius
Archengius4mo ago
the function is called GetProductionIndicatorStatus
Jean Michel
Jean MichelOP4mo ago
Thanks!

Did you find this page helpful?