Modify cargo in transport assets?

  1. 10 years ago
    Edited 10 years ago by Fat_Lurch

    Hello, my name is Erik.

    First and foremost, thank you to the ALiVE team for the tremendous addition to ARMA 3. This mod makes the game playable for my friends and I.

    I apologize if this is a stupid question or if it has been answered elsewhere; I did search this forum and online before posting (hopefully not poorly).

    I would like to modify the cargo contents of a transport asset. I tried the commands below in the initialization of the transport asset and they don't seem to have any effect.
    clearItemCargo this;
    clearItemCargo helo1; //Where my asset was named helo1
    this additemcargo["itemname", 5];
    helo1 additemcargo["itemname", 5];

    Am I simply doing something incorrectly, or is this functionality not implemented?

    Thank you for your time!

  2. ARJay

    26 Oct 2014 Administrator

    Are these vehicles synced to the CS module, or are you trying to apply that code to the module itself?

  3. Yes, the vehicle is linked to the player combat support module. I tried adding the parameters to the transport module.

  4. ARJay

    5 Nov 2014 Administrator

    If it is a vehicle that is synced to the CS modules you should be able to set that code on the vehicle's init field directly.

 

or Sign Up to reply!