Jump to content
Sign in to follow this  
major_shepard

OA Backpack - Can't pick up from vehicle cargo

Recommended Posts

Hi there,

I have a weird issue with OA Backpack into vehicule cargo.

So I have a vehicle named CAR1 and I add by script a M252 mortar bag and a Tripod bad like this:

if (isServer) then {

CAR1 addBackpackCargoGlobal ["M252_US_Bag_EP1",1];

CAR1 addBackpackCargoGlobal ["Tripod_Bag",1];

};

Last OA patch 1.60 installed, no addons.

Running this mission on a dedicated server with 2 players. Both can see the Mortar and the Tripod into vehicule cargo but only one can pick them up. The other player can't do anything. :confused:

Thanks for your answer :)

Share this post


Link to post
Share on other sites

If you're running Dedicated... then isn't "if (isServer) then {...};" for Singleplayer?

try Useing "if (isDedicated) then {...};" I'm Not too Keen on How the, if this, if that, Stuff works.

Then Again... if you Said they can See it & Only ONE may use it. Maybe it's the players issue. Cause the rest of the Code Certainly looks Correct to me.

Share this post


Link to post
Share on other sites

The (isServer) condition is for the addBackpackCargoGlobal command otherwise you will have as many backpack into the vehicle cargo as the number of player. I have exactly the same issue in SinglePlayer (ArmA 2 editor) when I try this code

CAR1 addBackpackCargo ["M252_US_Bag_EP1",1];

CAR1 addBackpackCargo ["Tripod_Bag",1];

The two playable units are in the same group.

Edited by Major_Shepard

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×