mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Merge pull request #18 from ciribob/master
Fix for Vec3 related typo in groupRandomDistSelf
This commit is contained in:
commit
40100072a8
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -20,6 +20,8 @@
|
|||||||
*.PDF diff=astextplain
|
*.PDF diff=astextplain
|
||||||
*.rtf diff=astextplain
|
*.rtf diff=astextplain
|
||||||
*.RTF diff=astextplain
|
*.RTF diff=astextplain
|
||||||
|
*.txt eol=crlf
|
||||||
|
|
||||||
|
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
|
|||||||
2
mist.lua
2
mist.lua
@ -3924,7 +3924,7 @@ mist.groupRandomDistSelf = function(gpData, dist, form, heading, speed)
|
|||||||
local pos = mist.getLeadPos(gpData)
|
local pos = mist.getLeadPos(gpData)
|
||||||
local fakeZone = {}
|
local fakeZone = {}
|
||||||
fakeZone.radius = dist or math.random(300, 1000)
|
fakeZone.radius = dist or math.random(300, 1000)
|
||||||
fakeZone.point = {x = pos.x, y, pos.y, z = pos.z}
|
fakeZone.point = {x = pos.x, y = pos.y, z = pos.z}
|
||||||
mist.groupToRandomZone(gpData, fakeZone, form, heading, speed)
|
mist.groupToRandomZone(gpData, fakeZone, form, heading, speed)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@ -3919,7 +3919,7 @@ mist.groupRandomDistSelf = function(gpData, dist, form, heading, speed)
|
|||||||
local pos = mist.getLeadPos(gpData)
|
local pos = mist.getLeadPos(gpData)
|
||||||
local fakeZone = {}
|
local fakeZone = {}
|
||||||
fakeZone.radius = dist or math.random(300, 1000)
|
fakeZone.radius = dist or math.random(300, 1000)
|
||||||
fakeZone.point = {x = pos.x, y, pos.y, z = pos.z}
|
fakeZone.point = {x = pos.x, y = pos.y, z = pos.z}
|
||||||
mist.groupToRandomZone(gpData, fakeZone, form, heading, speed)
|
mist.groupToRandomZone(gpData, fakeZone, form, heading, speed)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user