Page 1 of 1

Ghost constant combinator

Posted: Tue Jul 17, 2018 9:39 pm
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.

Re: Ghost constant combinator

Posted: Wed Jul 18, 2018 2:40 am
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)

Re: Ghost constant combinator

Posted: Wed Jul 18, 2018 5:28 am
by DaveMcW
Ah, of course. Thanks!