get target of item-request-proxy?
Posted: Fri Apr 28, 2017 6:34 am
Hi,
when a item-request-proxy is created, you have to specify a target (see also viewtopic.php?f=25&t=40570):
How do I get the traget of this created proxy? proxy.target does not exist and proxy.drop_target is nil.
Thanks, Gerhard
when a item-request-proxy is created, you have to specify a target (see also viewtopic.php?f=25&t=40570):
Code: Select all
/c local p,s=game.player,game.player.selected proxy=p.surface.create_entity{name="item-request-proxy",target=s,force=s.force,position=s.position,modules={{item="speed-module",count=1}}}
Thanks, Gerhard