Hello everyone,
I've successfully found a way to make it so that you have to pay for each use of both the airstrike and ion cannon support powers, however I can't get it to work for the nukepower trait.
In my mod the communications center builds an invisible actor. this actor has the SupportPower trait and kills itself when the camera actor from the SupportPower trait appears.
Since the NukePower trait doesn't have a camera actor I cannot implement the same logic here. I tried but failed using the ToggleConditionOnOrder trait.
I've familiarised myself with yaml but not with lua script yet. I'm not sure if maybe lua would be the answer..?
Please could someone point me in the right direction. Thanks in advance
I've successfully found a way to make it so that you have to pay for each use of both the airstrike and ion cannon support powers, however I can't get it to work for the nukepower trait.
In my mod the communications center builds an invisible actor. this actor has the SupportPower trait and kills itself when the camera actor from the SupportPower trait appears.
Since the NukePower trait doesn't have a camera actor I cannot implement the same logic here. I tried but failed using the ToggleConditionOnOrder trait.
I've familiarised myself with yaml but not with lua script yet. I'm not sure if maybe lua would be the answer..?
Please could someone point me in the right direction. Thanks in advance
Statistics: Posted by Yoghurt — Fri Feb 16, 2024 9:23 pm — Replies 0 — Views 16