mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Improved "simulate player landing" command in debug menu
This commit is contained in:
parent
08e34a1b93
commit
28927248b2
@ -56,14 +56,13 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function doSimulatePlayerLanding()
|
local function doSimulatePlayerLanding()
|
||||||
-- TUM.playerCareer.awardScore(TUM.playerScore.getScore(), TUM.playerScore.getCompletedObjectives())
|
local playerUnit = coalition.getPlayers(TUM.settings.getPlayerCoalition())[1]
|
||||||
|
|
||||||
local event = {
|
local runwayTouchEvent = { id = world.event.S_EVENT_RUNWAY_TOUCH, initiator = playerUnit }
|
||||||
id = world.event.S_EVENT_LAND,
|
TUM.onEvent(runwayTouchEvent)
|
||||||
initiator = coalition.getPlayers(TUM.settings.getPlayerCoalition())[1]
|
|
||||||
}
|
|
||||||
|
|
||||||
TUM.onEvent(event)
|
local landingEvent = { id = world.event.S_EVENT_LAND, initiator = playerUnit }
|
||||||
|
timer.scheduleFunction(TUM.onEvent, landingEvent, timer.getTime() + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TUM.debugMenu.createMenu()
|
function TUM.debugMenu.createMenu()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user