Author Topic: Add Cargo by Device  (Read 805 times)

p0ki

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Add Cargo by Device
« on: September 15, 2015, 01:47:09 pm »
Hy there,
I learned that you can remove Cargo by this command:
Code: [Select]
ship.RemoveCargoByType(args.ship_id, "item_id", $amount);But how do you add Cargo?
ship.AddCargoByType didn't do it.
ship.AddItemToStorage didn't do it.

So what do it? I just know the two it ...
... commands.
(I know that properly it would be "does" but if you get the reference, you are awesome)

Any help appreciated :)
« Last Edit: September 15, 2015, 02:25:59 pm by p0ki »
Playing on:
[EU][kG]kunix.org

Lurler

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 988
    • View Profile
Re: Add Cargo by Device
« Reply #1 on: September 15, 2015, 07:50:48 pm »
Hm, you can just take a loot at any of the topics in the game that uses these functions and see how they work. I think it is better than any explanation :)

p0ki

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: Add Cargo by Device
« Reply #2 on: September 16, 2015, 03:56:05 am »
Thanks, found it.
Playing on:
[EU][kG]kunix.org