mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #2171 from FlightControl-Master/master
Update Utils.lua
This commit is contained in:
commit
ff52197707
@ -4147,7 +4147,7 @@ function UTILS.SpawnFARPAndFunctionalStatics(Name,Coordinate,FARPType,Coalition,
|
|||||||
|
|
||||||
local farpobcount = 0
|
local farpobcount = 0
|
||||||
for _name,_object in pairs(FARPStaticObjectsNato) do
|
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 heading = objloc:HeadingTo(farplocation)
|
||||||
local newobject = SPAWNSTATIC:NewFromType(_object.TypeName,_object.Category,Country)
|
local newobject = SPAWNSTATIC:NewFromType(_object.TypeName,_object.Category,Country)
|
||||||
newobject:InitShape(_object.ShapeName)
|
newobject:InitShape(_object.ShapeName)
|
||||||
@ -4159,7 +4159,7 @@ function UTILS.SpawnFARPAndFunctionalStatics(Name,Coordinate,FARPType,Coalition,
|
|||||||
|
|
||||||
-- Vehicle if any
|
-- Vehicle if any
|
||||||
if VehicleTemplate and type(VehicleTemplate) == "string" then
|
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 heading = vcoordinate:HeadingTo(farplocation)
|
||||||
local vehicles = SPAWN:NewWithAlias(VehicleTemplate,"FARP Vehicles - "..Name)
|
local vehicles = SPAWN:NewWithAlias(VehicleTemplate,"FARP Vehicles - "..Name)
|
||||||
vehicles:InitGroupHeading(heading)
|
vehicles:InitGroupHeading(heading)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user