mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
SpawnStatic moved to new repo
This commit is contained in:
parent
cf1f1042bc
commit
fd70410387
@ -1,31 +0,0 @@
|
||||
--- Name: SPS-100 - Simple Spawning
|
||||
-- Author: FlightControl
|
||||
-- Date Created: 09 Apr 2017
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
-- At Gudauta spawn a static.
|
||||
--
|
||||
-- # Test cases:
|
||||
--
|
||||
-- 1. Observe that the static is spawned.
|
||||
|
||||
|
||||
local ZonePosition = ZONE:New( "Position" )
|
||||
|
||||
local SpawnBuilding = SPAWNSTATIC:NewFromStatic( "Building", country.id.GERMANY )
|
||||
local SpawnBarrack = SPAWNSTATIC:NewFromStatic( "Barrack", country.id.GERMANY )
|
||||
|
||||
local ZonePointVec2 = ZonePosition:GetPointVec2()
|
||||
|
||||
local Building = SpawnBuilding:SpawnFromZone( ZonePosition, 0 )
|
||||
|
||||
for Heading = 0, 360,60 do
|
||||
local Radial = Heading * ( math.pi*2 ) / 360
|
||||
local x = ZonePointVec2:GetLat() + math.cos( Radial ) * 150
|
||||
local y = ZonePointVec2:GetLon() + math.sin( Radial ) * 150
|
||||
SpawnBarrack:SpawnFromPointVec2( POINT_VEC2:New( x, y ), Heading + 90 )
|
||||
end
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user