mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Fixed Typo
Fixed typo generating error in mist.getRandomPointInZone
This commit is contained in:
parent
fdcbac0ac5
commit
1c9e14add3
10
mist.lua
10
mist.lua
@ -35,7 +35,7 @@ mist = {}
|
|||||||
-- don't change these
|
-- don't change these
|
||||||
mist.majorVersion = 4
|
mist.majorVersion = 4
|
||||||
mist.minorVersion = 5
|
mist.minorVersion = 5
|
||||||
mist.build = 97
|
mist.build = 98
|
||||||
|
|
||||||
-- forward declaration of log shorthand
|
-- forward declaration of log shorthand
|
||||||
local log
|
local log
|
||||||
@ -5183,7 +5183,13 @@ unitTableDef = table or nil
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
--[[
|
||||||
|
function mist.flagFunc.weapon_in_zones(vars)
|
||||||
|
-- borrow from suchoi surprise. While running enabled event handler that checks for weapons in zone.
|
||||||
|
-- Choice is weapon category or weapon strings.
|
||||||
|
|
||||||
|
end
|
||||||
|
]]
|
||||||
--- Sets a flag if unit(s) is/are inside a moving zone.
|
--- Sets a flag if unit(s) is/are inside a moving zone.
|
||||||
-- @todo document
|
-- @todo document
|
||||||
function mist.flagFunc.units_in_moving_zones(vars)
|
function mist.flagFunc.units_in_moving_zones(vars)
|
||||||
@ -7127,7 +7133,7 @@ do -- group tasks scope
|
|||||||
|
|
||||||
function mist.getRandomPointInZone(zoneName, innerRadius, maxA, minA)
|
function mist.getRandomPointInZone(zoneName, innerRadius, maxA, minA)
|
||||||
if type(zoneName) == 'string' then
|
if type(zoneName) == 'string' then
|
||||||
local zone = mist.DBs.zoneByName[zoneName]
|
local zone = mist.DBs.zonesByName[zoneName]
|
||||||
if zone.type and zone.type == 2 then
|
if zone.type and zone.type == 2 then
|
||||||
return mist.getRandomPointInPoly(zone.vertices)
|
return mist.getRandomPointInPoly(zone.vertices)
|
||||||
else
|
else
|
||||||
|
|||||||
7634
mist_4_5_98.lua
Normal file
7634
mist_4_5_98.lua
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user