Jump to content

Recommended Posts

Gents, 

 

If you look at the following function, it is possible to set the internal weight of a helicopter. 

 

https://wiki.hoggitworld.com/view/DCS_func_setUnitInternalCargo

 

Do you know if there is any chance to get (return) the actual internal weight of a units internal cargo? 

 

My plan is to do something like:

 

local internalWeight = unit.getweightblabla

 

local add Weight = setUnitInternalCargo('unit', internalWeight + 100)

 

Any help would be appreciated! 

Link to post
Share on other sites
47 minutes ago, toutenglisse said:

 

Hi, the list of all available functions is here Category:Scripting - DCS World Wiki - Hoggitworld.com

 

And the one you need is this one DCS func getCargoWeight - DCS World Wiki - Hoggitworld.com

Thanks for replying!

 

I know the hoggit list, but i thought "getCargoWeight" would only work for static objects like external cargo? What i want to know is the internal load of a helicopter (e.g. after it has loaded some troops).

Link to post
Share on other sites
10 minutes ago, exil said:

Thanks for replying!

 

I know the hoggit list, but i thought "getCargoWeight" would only work for static objects like external cargo? What i want to know is the internal load of a helicopter (e.g. after it has loaded some troops).

 

Yes, sorry I overlooked it.

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...