GetInvCog
GetInvCog() returns the cog assigned to the specified bin. This is very useful when you have to send a message to a cog and need a reference to it.
inv_cog
=
GetInvCog(player, bin);
Related:
Bin Cogs