Jump to content
Play3r

additem to a spawned ammobox [SOLVED]

Recommended Posts

Hi all you great helpers.

If i want to add some :

ammo, backpacks, weapons, googles, uniforms and more into a spawned ammobox.

i have tried this

LL_BoatBoxLand = createVehicle ["rhs_7ya37_1_single", position player, [], 0, "NONE"];

 

clearItemCargo LL_BoatBoxLand;
LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag, 5"];

 

i don't know if i use a wrong command.

 

Cheers Play3r

 


 

Share this post


Link to post
Share on other sites

The second quote is not at the right place.

LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag", 5];

 

In MP, use addItemCargoGlobal if you run the code locally (server or else). addItemCargo is fine if you run the code everywhere (not usual).

  • Thanks 1

Share this post


Link to post
Share on other sites
3 hours ago, pierremgi said:

The second quote is not at the right place.

LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag", 5];

 

In MP, use addItemCargoGlobal if you run the code locally (server or else). addItemCargo is fine if you run the code everywhere (not usual).

LOL  why did't i see that error.

It is for SP

 

Thx Pierremgi

Share this post


Link to post
Share on other sites
8 hours ago, Play3r said:

 

It is for SP

 

 

Instead of spawning, create the ammo box with the correct contents and then move it using a trigger.

  • Like 1

Share this post


Link to post
Share on other sites

 

48 minutes ago, Joe98 said:

 

Instead of spawning, create the ammo box with the correct contents and then move it using a trigger.

 

my problem is that the player is in a boat and can go to shore where he wants, and the ammobox is inside the boat so the player has to take it out of the boat, that's why i need it to spawn where the player is.

 

  • Like 1

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

×