Page MenuHomeFeedback Tracker

*Request* Function to establish number of empty/available cargo places in Vehicles
Closed, ResolvedPublic

Description

I've not been able to find a command or function that will return the number of empty or not occupied cargo spaces that can hold infantry in a vehicle.

I'm making a script which would spawn a vehicle, which I then want to fill with random infantry of a given side.

I'd prefer to first query the size of the available cargo, then use this value as an iterator to fill the vehicles cargo.

At the moment, I have to look online for the target vehicles cargo capacity then hard code that into the script.

Details

Legacy ID
3351707288
Severity
None
Resolution
Fixed
Reproducibility
N/A
Category
Scripting

Event Timeline

JQuel edited Steps To Reproduce. (Show Details)Jul 4 2013, 10:54 PM
JQuel edited Additional Information. (Show Details)
JQuel set Category to Scripting.
JQuel set Reproducibility to N/A.
JQuel set Severity to None.
JQuel set Resolution to Fixed.
JQuel set Legacy ID to 3351707288.May 7 2016, 3:18 PM
JQuel added a subscriber: JQuel.
JQuel added a comment.Jul 4 2013, 11:03 PM

Never mind, I found it!!

emptyPositions

Good job finding the command. When searching for commands, I recommend to always go first to the complete list of them: http://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3