Skip to content

Commit

Permalink
Merge pull request #2171 from FlightControl-Master/master
Browse files Browse the repository at this point in the history
Update Utils.lua
  • Loading branch information
Applevangelist authored Aug 25, 2024
2 parents b025aba + 56d84e7 commit ff52197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Moose Development/Moose/Utilities/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4147,7 +4147,7 @@ function UTILS.SpawnFARPAndFunctionalStatics(Name,Coordinate,FARPType,Coalition,

local farpobcount = 0
for _name,_object in pairs(FARPStaticObjectsNato) do
local objloc = farplocation:Translate(100,farpobcount*30)
local objloc = farplocation:Translate(radius,farpobcount*30)
local heading = objloc:HeadingTo(farplocation)
local newobject = SPAWNSTATIC:NewFromType(_object.TypeName,_object.Category,Country)
newobject:InitShape(_object.ShapeName)
Expand All @@ -4159,7 +4159,7 @@ function UTILS.SpawnFARPAndFunctionalStatics(Name,Coordinate,FARPType,Coalition,

-- Vehicle if any
if VehicleTemplate and type(VehicleTemplate) == "string" then
local vcoordinate = farplocation:Translate(100,farpobcount*30)
local vcoordinate = farplocation:Translate(radius,farpobcount*30)
local heading = vcoordinate:HeadingTo(farplocation)
local vehicles = SPAWN:NewWithAlias(VehicleTemplate,"FARP Vehicles - "..Name)
vehicles:InitGroupHeading(heading)
Expand Down

0 comments on commit ff52197

Please sign in to comment.