get target of item-request-proxy?

Place to get help with not working mods / modding interface.
gheift
Fast Inserter
Fast Inserter
Posts: 188
Joined: Tue Mar 03, 2015 9:20 pm
Contact:

get target of item-request-proxy?

Post by gheift »

Hi,

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}}}
How do I get the traget of this created proxy? proxy.target does not exist and proxy.drop_target is nil.

Thanks, Gerhard
Post Reply

Return to “Modding help”