Page 1 of 1

raise_built for LuaItemStack.build_blueprint

Posted: Tue Feb 04, 2020 2:55 pm
by justarandomgeek
LuaItemStack.build_blueprint should have a flag raise_built to cause script_raised_built to be fired for each ghost

Re: raise_built for LuaItemStack.build_blueprint

Posted: Tue Feb 04, 2020 5:09 pm
by Rseding91
The game fires the standard build events for the player that did the building. So, there's no need for this in that case, but having it fire when by_player is not provided I guess would be fine.

Re: raise_built for LuaItemStack.build_blueprint

Posted: Tue Feb 04, 2020 7:38 pm
by justarandomgeek
Ah! ConMan doesn't set by_player because it doesn't know who (if anyone) caused the signals that triggered it, but I got a report from a user wanting events, presumably so that an instant-blueprinter can revive them. It seemed wrong to me to call the api and then just turn around and raise_event everything it gave me back!