DCS func outTextForUnit

From DCS World Wiki - Hoggitworld.com
Revision as of 22:16, 28 April 2022 by Grimes (talk | contribs) (Created page with "{{Template:dcs_funcs |fName= outTextForUnit |vNum= 2.7.12 |par1= trigger.action |par2= |par3= |par4= |desc= Displays the passed string of te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: outTextForUnit Added with: 2.7.12
Member Of: trigger.action
Syntax: function trigger.action.outTextForUnit(number unitId , string text , number displayTime , boolean clearview)
Description: Displays the passed string of text for the specified time to all players in the specified unit. The unit is defined by its unitId.

Boolean clearview defines whether or not to use the old message display format. The old message display overwrites existing messages and is good for displaying anything that must be updated at a high rate like lap times.


Return Value: function
Return Example: none
Examples:
Related Functions: Trigger Functions: ctfColorTag, getUserFlag, setUserFlag, getZone, explosion, smoke, effectSmokeBig, effectSmokeStop, illuminationBomb, signalFlare, radioTransmission, stopRadioTransmission, setUnitInternalCargo

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

addOtherCommand, removeOtherCommand, addOtherCommandForCoalition, removeOtherCommandForCoalition, addOtherCommandForGroup, removeOtherCommandForGroup

markToAll, markToCoalition, markToGroup, removeMark, markupToAll, lineToAll, circleToAll, rectToAll, quadToAll, textToAll, arrowToAll, setMarkupRadius, setMarkupText, setMarkupFontSize, setMarkupColor, setMarkupColorFill, setMarkupTypeLine, setMarkupPositionEnd, setMarkupPositionStart

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

Notes: Clearview option added with 1.5. If value is present script is still safe to use in 1.2.16.