Envrioment:
|
Mission Scripting
|
|
Function:
|
getZone
|
Added with: 1.2.0
|
|
Member Of:
|
trigger.misc
|
Syntax:
|
table trigger.misc.getZone(string zoneName )
|
Description:
|
Returns a trigger zone table of a given name.
For more information on the zone table you can parse the miz file to find the table for the zone.
|
|
Return Value:
|
table
|
Return Example:
|
ZoneTable Format
TriggerZone = {
point = Vec3,
radius = Distance
}
|
|
Examples:
|
local zone = trigger.misc.getZone('shortBusStop')
trigger.action.outText('The Radius of the bus stop zone is: ' .. zone.radius, 20)
|
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:
|
If it is a quad zone then it will not return any information on the points.
|