Ghost constant combinator

Place to get help with not working mods / modding interface.
Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Ghost constant combinator

Post by DaveMcW »

Is there a way to access a ghost constant combinator's settings without reviving it?

I can see the signals when I mouse over the ghost, but I don't know how to read them in lua.

CyberWizard2261
Inserter
Inserter
Posts: 23
Joined: Tue Jun 26, 2018 11:01 am
Contact:

Re: Ghost constant combinator

Post by CyberWizard2261 »

you can get the signals the same way you do with a normal combinator:

ghost_control = ghost_entity.get_or_create_control_behavior()
signal = ghost_control.get_signal(number)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Ghost constant combinator

Post by DaveMcW »

Ah, of course. Thanks!

Post Reply

Return to “Modding help”