Skip to content

Commit

Permalink
Mission added Functional/FOX/102-ProtectedGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaltokri committed Feb 28, 2024
1 parent 07363c3 commit ef38200
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Functional/FOX/102-ProtectedGroup/FOX-102-ProtectedGroup.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
-- 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/Wrapper.Group.html
--
-- # Description:
-- In this mission we run a Functional FOX Missile trainer and add a protected group.
-- Note: AddProtectedGroup works only for AI!
--
-- # Guide:
-- 1. Start the mission.
-- 4. First AI aircraft is not protected and will be damaged or killed.
-- 5. Second AI aircraft is protected and will not be damaged.

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

-- Add protected AI group.
fox:AddProtectedGroup( GROUP:FindByName("Protected") )

-- Start missile trainer.
fox:Start()
MESSAGE:New( "FOX missile trainer started", 25, "INFO" ):ToAll():ToLog()
Binary file not shown.

0 comments on commit ef38200

Please sign in to comment.