Files
MOOSE/Test Missions/Moose_Test_MISSILETRAINER/Moose_Test_MISSILETRAINER.lua
T
svenvandevelde 9b0879626f Fix bug where missiles were deleted client to client
Bug solve of the early deletion of missiles fired from client to client
(air to air f.e.).
Updated documentation.
Added API to change the frequency of tracking.
2016-05-17 10:57:51 +02:00

22 lines
760 B
Lua

-- Only use Include.File when developing new MOOSE classes.
-- When using Moose.lua in the DO SCIPTS FILE initialization box,
-- these Include.File statements are not needed, because all classes within Moose will be loaded.
Include.File("MissileTrainer")
-- This is an example of a global
local Trainer = MISSILETRAINER
:New( 200 )
:InitMessagesOnOff(true)
:InitAlertsToAll(true) -- I'll correct it below ...
:InitAlertsHitsOnOff(true)
:InitAlertsLaunchesOnOff(false)
:InitBearingOnOff(true)
:InitRangeOnOff(true)
:InitTrackingOnOff(true)
:InitTrackingToAll(true)
:InitMenusOnOff(false) -- Disable menus
:InitTrackingFrequency( 1 ) -- Make Tracking Frequency 4 seconds ...
-- Trainer:InitAlertsToAll(true) -- Now alerts are also on