Jump to content
Zockerocker93

Bad vehicle type on magazines in script.

Recommended Posts

Hi,

 

I  have a script that will addmagazineCargoGlobal to some ammocrate. But I try with simple magzine types (eg. 30Rnd_65x39_caseless_mag) and for some reason suddenly I get error message when playing that sais Bad Vehicle type "30Rnd_65x39_caseless_mag". I don't know what causes this and I can't see how I have a typo and it happens for many other magazines too.

 

I have recently installed tanks DLC and it did not happen before.

 

The same code works perfectly when I put it in init line of the ammo box. 

 

anyone have the same problem

  • Like 1

Share this post


Link to post
Share on other sites

Try verifying game, etc... If that doesn't do it. Show code so I/others can help you better...

  • Like 2

Share this post


Link to post
Share on other sites
9 hours ago, Zockerocker93 said:

I  have a script that will addmagazineCargoGlobal

 

Hello there Zockerocker93 !

 

For sure,  it's either in your list somewhere a wrong name of magazine ,

or you might have copy a list , that is including some none existing content in your game , due mods.

 

You should check your list again.

  • Like 1

Share this post


Link to post
Share on other sites

I found the cause of the error: I am an idiot...

 

I passed 4 arrays in the params to my function weapons, items, magzines, backpacks. But the function that calls it passed them in weapons, items, backpacks, magazines order.

 

Thus Magazines and Backpacks where mixed up and both are not compatible to the respective other addCargo function.

 

Sorry that I wasted your time - thanks you :)

  • Like 1
  • Thanks 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

×