Next step of folder restructure

This commit is contained in:
kaltokri
2024-01-01 22:40:31 +01:00
parent b95cb6fd83
commit ccbc7dc549
898 changed files with 17060 additions and 258791 deletions

View File

@@ -0,0 +1,34 @@
---
-- Name: EVT-401 - Generic OnEventHit Example
-- Author: FlightControl
-- Date Created: 15 February 2017
--
-- # Situation:
--
-- Ground targets are shooting each other.
--
-- # Test cases:
--
-- 1. Observe the ground forces shooting each other.
-- 2. Observe when a tank receives a hit, a dcs.log entry is written in the logging.
-- 3. The generic EventHandler objects should receive the hit events.
CC = COMMANDCENTER:New( UNIT:FindByName( "HQ" ), "HQ" )
EventHandler1 = EVENTHANDLER:New()
EventHandler2 = EVENTHANDLER:New()
EventHandler1:HandleEvent( EVENTS.Hit )
EventHandler2:HandleEvent( EVENTS.Hit )
function EventHandler1:OnEventHit( EventData )
self:E("hello 1")
CC:GetPositionable():MessageToAll( "I just got hit!", 15 , "Alert!" )
end
function EventHandler2:OnEventHit( EventData )
self:E("hello 2")
CC:GetPositionable():MessageToAll( "I just got hit!", 15, "Alert!" )
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff