How to retrieve Vehicle's and tent's storage capacity ?

Orcalito

New Member
Hi there,

First thing first, I'm new to Arma's scripting, so please forgive me if there's an easy answer to this...

After looking on the web for an existing script, which I was unable to find, I've made a script which shows to the player how much free space he has for the selected vehicle/tent.

But I'm currently using a hardcoded array of vehicles to handle cargo's capacity for each known vehicles, which is quite annoying, and don't work for vehicles I'm not aware of.


My question is, is there a way to retrieve the maximal capacity of each of the 3 cargo/storage slots of a vehicle or a tent ?



Btw, I've some difficulties to write in the right table using the "child:99x" thing :

eg:
["CHILD:998: INSERT INTO `%1` (`entry`) VALUES (?):[""%2""]:", _table, _msg];

this works fine, except the fact it always write into the same table (hive_Ext.log is logging a well formed entry in the targeted table, but this is not the case in the database where my entry will be stored in another table. What's wrong with this piece of code ?

Thanks.
 
Back
Top