exil Posted June 4, 2021 Share Posted June 4, 2021 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 comment Share on other sites More sharing options...
toutenglisse Posted June 4, 2021 Share Posted June 4, 2021 3 hours ago, exil said: ...Do you know if there is any chance to get (return) the actual internal weight of a units internal cargo? ... 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 Link to comment Share on other sites More sharing options...
exil Posted June 4, 2021 Author Share Posted June 4, 2021 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 comment Share on other sites More sharing options...
toutenglisse Posted June 4, 2021 Share Posted June 4, 2021 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 comment Share on other sites More sharing options...
exil Posted June 4, 2021 Author Share Posted June 4, 2021 1 hour ago, toutenglisse said: Yes, sorry I overlooked it. No worries! Thanks anyways for trying to help! Link to comment Share on other sites More sharing options...
Recommended Posts