Added "simulate player takeoff" command

This commit is contained in:
Ambroise Garel
2025-07-23 21:07:09 +02:00
parent baa8d9160d
commit 9d0e1084cf
@@ -55,6 +55,13 @@ do
TUM.playerScore.awardCompletedObjective() TUM.playerScore.awardCompletedObjective()
end end
local function doSimulatePlayerTakeOff()
local playerUnit = coalition.getPlayers(TUM.settings.getPlayerCoalition())[1]
local takeOffEvent = { id = world.event.S_EVENT_TAKEOFF, initiator = playerUnit }
TUM.onEvent(takeOffEvent)
end
local function doSimulatePlayerLanding() local function doSimulatePlayerLanding()
local playerUnit = coalition.getPlayers(TUM.settings.getPlayerCoalition())[1] local playerUnit = coalition.getPlayers(TUM.settings.getPlayerCoalition())[1]
@@ -72,6 +79,7 @@ do
missionCommands.addCommand("Detonate \"boom\" map markers", rootMenu, doMarkersBoom, nil) missionCommands.addCommand("Detonate \"boom\" map markers", rootMenu, doMarkersBoom, nil)
missionCommands.addCommand("Detonate aircraft near \"airboom\" map markers", rootMenu, doMarkersAirBoom, nil) missionCommands.addCommand("Detonate aircraft near \"airboom\" map markers", rootMenu, doMarkersAirBoom, nil)
missionCommands.addCommand("Award 100 points and 1 objective", rootMenu, doAwardPointsAndObjectives, nil) missionCommands.addCommand("Award 100 points and 1 objective", rootMenu, doAwardPointsAndObjectives, nil)
missionCommands.addCommand("Simulate player takeoff", rootMenu, doSimulatePlayerTakeOff, nil)
missionCommands.addCommand("Simulate player landing", rootMenu, doSimulatePlayerLanding, nil) missionCommands.addCommand("Simulate player landing", rootMenu, doSimulatePlayerLanding, nil)
missionCommands.addCommand("Reset player stats", rootMenu, TUM.playerCareer.reset, nil) missionCommands.addCommand("Reset player stats", rootMenu, TUM.playerCareer.reset, nil)
end end