mirror of
https://github.com/FlightControl-Master/MOOSE_Demos.git
synced 2025-08-15 10:37:47 +00:00
Added mission Functional/FOX/103-SafeZone
This commit is contained in:
parent
ef38200456
commit
8bbfe5f999
37
Functional/FOX/103-SafeZone/ZON-103-SafeZone.lua
Normal file
37
Functional/FOX/103-SafeZone/ZON-103-SafeZone.lua
Normal file
@ -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()
|
||||
BIN
Functional/FOX/103-SafeZone/ZON-103-SafeZone.miz
Normal file
BIN
Functional/FOX/103-SafeZone/ZON-103-SafeZone.miz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user