Jump to content
Sign in to follow this  
richardp

How to spawn a vehicle with full soft cargo?

Recommended Posts

I want to spawn a IL-76 with men already onboard, is there a simple solution for this? or would I have to setup a million moveincargo lines.

Share this post


Link to post
Share on other sites

To start a group in a vehicle you can do this in the group leader's init field:

{_x moveInCargo vehicleName} forEach units group this;

Share this post


Link to post
Share on other sites

Helpful for me aswell. I wanted to do the same thing for a month and I dident think to use foreach until now :p

Edited by rufor

Share this post


Link to post
Share on other sites

Hi,

Kylania could you please help me to find a way to add extra missiles (konkurs) into a spawned a BMP2 (ACE) (the vehicle spawn via a buy menu list)

I tried to add this line in my init.sqf (pbo)

//

ACE_BMP2D_RU addMagazineCargoGlobal ["ACE_AT5B_Launcher",4];

http://browser.six-projects.net/cfg_weapons/1624526

but it doesn't work. the vehicle spawn with nothing inside the cargo.

Edited by cychou

Share this post


Link to post
Share on other sites

For that to work you'd need to replace ACE_BMP2D_RU with the object of the BMP2 you're spawning. As I'd mentioned in your other thread you'd need to find where that vehicle is being spawned and add it to that code. I'll check your other thread and see.

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  

×