Difference between revisions of "DCS func setUnitInternalCargo"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= setUnitInternalCargo |vNum= 2.5.6 |par1= trigger.action |par2= |par3= |par4= |desc= Sets the internal cargo for...")
(No difference)

Latest revision as of 21:04, 14 February 2020

Scripting Root

Envrioment: Mission Scripting
Function: setUnitInternalCargo Added with: 2.5.6
Member Of: trigger.action
Syntax: function trigger.action.setUnitInternalCargo(string unitName, number mass )
Description: Sets the internal cargo for the specified unit at the specified mass. Can be used in conjunction with troop transport to simulate cargo being added to the aircraft. Can be used on any unit object, however it only will impact airplanes and helicopters. Mass is defined in kilograms.

Return Value: function
Return Example: none
Examples: trigger.action.setUnitInternalCargo('Jek Porkins', 1000)
Related Functions: Trigger Functions: getUserFlag, setUserFlag, getZone, explosion, smoke, effectSmokeBig, illuminationBomb, signalFlare, radioTransmission, setUnitInternalCargo

outSound, outSoundForCoalition, outSoundForCountry, outSoundForGroup, outText, outTextForCoalition, outTextForCountry, outTextForGroup

addOtherCommand, removeOtherCommand, addOtherCommandForCoalition, removeOtherCommandForCoalition, addOtherCommandForGroup, removeOtherCommandForGroup

markToAll, markToCoalition, markToGroup, removeMark

setAITask, pushAITask, activateGroup, deactivateGroup, setGroupAIOn, setGroupAIOff, groupStopMoving, groupContinueMoving