Skip to content

Commit

Permalink
Added mission Functional/FOX/103-SafeZone
Browse files Browse the repository at this point in the history
  • Loading branch information
kaltokri committed Feb 28, 2024
1 parent ef38200 commit 8bbfe5f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Functional/FOX/103-SafeZone/ZON-103-SafeZone.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
-- Author: kaltokri
-- Created: 28.02.2024
-- Contributors: -
-- Modified: 28.02.2024
--
-- # Documentation:
-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Functional.Fox.html
-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Core.Zone.html
--
-- # Description:
-- In this mission we run a Functional FOX Missile trainer and add a safe zone.
-- Players are only protected if they are inside the zone.
-- Change client to another aircraft in mission editor as required.
-- Note: This works not for AI!
--
-- # Guide:
-- 1. Start the mission and join the Su-25T as player.
-- 2. Activate auto pilot with key A.
-- 3. Switch between external view (F2) and map (F10).
-- 4. When the aircraft is passing the first SA-13 it will fire a rocket.
-- 5. The rocket will explode prior reaching your aircraft, because your aircraft is still in the SafeZone.
-- 6. Fly straight ahead and after leaving the SafeZone missiles (no matter from which SA-13) will damage you.

-- Create a new missile trainer object.
fox=FOX:New()

-- Get zone object and draw the zone in F10 map.
SafeZone = ZONE:New( "FOX_Safe_Zone" )
:DrawZone( -1, {1,0,0}, 1, {1,0,0}, 0.3, true )

-- Add training Safe zones.
fox:AddSafeZone( SafeZone )

-- Start missile trainer.
fox:Start()
MESSAGE:New( "FOX missile trainer started", 25, "INFO" ):ToAll():ToLog()
Binary file added Functional/FOX/103-SafeZone/ZON-103-SafeZone.miz
Binary file not shown.

0 comments on commit 8bbfe5f

Please sign in to comment.