Jump to content
Sign in to follow this  
Peterprice

Cargo space.

Recommended Posts

Hello, when i am making a multiplayer mission, or putting weapons into a truck in editor. For example i spawn a SUV and i want to put a 100 pistols in it, it will only be put 10 in there, or if i spawn a truck, and want to put 100 pistols into it. It will only spawn 50 pistols inside of the truck.

Is there anyway to remove the cargo space limitations in the truck, to be able to spawn 100 pistols in a truck or 1,000 pistols in a truck?

Share this post


Link to post
Share on other sites
Hello, when i am making a multiplayer mission, or putting weapons into a truck in editor. For example i spawn a SUV and i want to put a 100 pistols in it, it will only be put 10 in there, or if i spawn a truck, and want to put 100 pistols into it. It will only spawn 50 pistols inside of the truck.

Is there anyway to remove the cargo space limitations in the truck, to be able to spawn 100 pistols in a truck or 1,000 pistols in a truck?

why you would want 1000 units of anything in a vehicle is beyond me, but you can create a trigger wich is set on repeated every 5 mins or whatever and run the script you used to fill up car from there.

Then it will always have 50 guns wich is restocked every 5 mins or whatever.

Share this post


Link to post
Share on other sites

Not really interested in a trigger, just interested if there is a script that i can enter into the init that basically gives you unlimited cargo space. Also i want to spawn trucks with lots of weapons in it for long PVP matches.

Share this post


Link to post
Share on other sites

The actual quantity to work with is determined by the model's class in CfgVehicles - biki

so im afraid you cannot have unlimited cargo space as its pre defined in the class of vehicle.

unless you want to make your own custom truck with unlimited cargo space, there is no way to accomplish this without making an addon.

Share this post


Link to post
Share on other sites

You might be able to use Tophe's Universal Crate Filler

http://forums.bistudio.com/showthread.php?t=103525&highlight=universal+crate+filler

You might not need it, but Kylania's site has a chart which shows how much cargo space vehicle's have.

http://www.kylania.com/ex/

BTW - I've had similar interests as well, and look to accomplish it in various ways. I like to make sandbox type non-missions, where we just roam for a long time against respawning bad guys. So I look for various ways to have lots of resupply options (without just doing unlimited ammo, which isn't preferred).

You might also be interested in General Carver's spare vest pouch;

http://forums.bistudio.com/showthread.php?t=111113

And he also has a 2nd primary weapon script.

And there is a generic chopper ammo drop-off script, but it's not 100% reliable

http://forums.bistudio.com/showthread.php?p=1646609&highlight=cargo+drop#post1646609

And of course Cap'n Obvious would say another thing you can do is strategically and/or randomly place enemy vehicles around that have ammo in them. Stuff like that. I"m always looking for neat ways to do it. Oh, and if playing with AI, and you don't mind an addon, be sure to use Robolo's continuation of ASR_Rearming, so the bots will reload themselves.

Share this post


Link to post
Share on other sites
Not really interested in a trigger, just interested if there is a script that i can enter into the init that basically gives you unlimited cargo space. Also i want to spawn trucks with lots of weapons in it for long PVP matches.

create your script and in it have a

while {alive truck} do {fill all ammo scripts};
sleep 180;  // or how many seconds you want inbetween each fillup

run script from vehicle init

Share this post


Link to post
Share on other sites
You might be able to use Tophe's Universal Crate Filler

http://forums.bistudio.com/showthread.php?t=103525&highlight=universal+crate+filler

You might not need it, but Kylania's site has a chart which shows how much cargo space vehicle's have.

http://www.kylania.com/ex/

BTW - I've had similar interests as well, and look to accomplish it in various ways. I like to make sandbox type non-missions, where we just roam for a long time against respawning bad guys. So I look for various ways to have lots of resupply options (without just doing unlimited ammo, which isn't preferred).

You might also be interested in General Carver's spare vest pouch;

http://forums.bistudio.com/showthread.php?t=111113

And he also has a 2nd primary weapon script.

And there is a generic chopper ammo drop-off script, but it's not 100% reliable

http://forums.bistudio.com/showthread.php?p=1646609&highlight=cargo+drop#post1646609

And of course Cap'n Obvious would say another thing you can do is strategically and/or randomly place enemy vehicles around that have ammo in them. Stuff like that. I"m always looking for neat ways to do it. Oh, and if playing with AI, and you don't mind an addon, be sure to use Robolo's continuation of ASR_Rearming, so the bots will reload themselves.

Thank you that chart was very helpfull.

---------- Post added at 06:59 PM ---------- Previous post was at 06:58 PM ----------

create your script and in it have a
while {alive truck} do {fill all ammo scripts};
sleep 180;  // or how many seconds you want inbetween each fillup

run script from vehicle init

I will try that for one of my missions, thank you very much.

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  

×