Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 02175a6

Browse files
GacyrGacyr
authored andcommitted
Fixed missing OrbitedCraft changes in missions from my lua changes a while back. Oops.
1 parent e3a1da2 commit 02175a6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Base.rte/Scripts/Examples/MetaFightBehaviorExample.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ function MetaScript:PauseScript()
6565
end
6666
end
6767

68-
function MetaScript:CraftEnteredOrbit()
68+
function MetaScript:CraftEnteredOrbit(orbitedCraft)
6969
if SettingsMan.PrintDebugInfo then
7070
print (self.PresetName.." Orbited")
71-
print (self.OrbitedCraft)
71+
print (orbitedCraft)
7272
end
7373
end

Missions.rte/Activities/Maginot.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ end
377377
-- Craft Entered Orbit
378378
-----------------------------------------------------------------------------------------
379379

380-
function MaginotMission:CraftEnteredOrbit()
380+
function MaginotMission:CraftEnteredOrbit(orbitedCraft)
381381
--If a craft leaves with the brain robot...
382-
if self.OrbitedCraft:HasObjectInGroup("Brains") then
382+
if orbitedCraft:HasObjectInGroup("Brains") then
383383
--Team 1 wins!
384384
self.WinnerTeam = Activity.TEAM_1
385385
ActivityMan:EndActivity()

Missions.rte/Activities/ZombieCave.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,11 @@ end
445445
-- Craft Entered Orbit
446446
-----------------------------------------------------------------------------------------
447447

448-
function ZombieCaveMission:CraftEnteredOrbit()
448+
function ZombieCaveMission:CraftEnteredOrbit(orbitedCraft)
449449
-- The intiial rocket has delivered the brain
450450
self.BrainHasLanded = true;
451451
-- This is set to the ACraft that just entered orbit
452-
if self.OrbitedCraft:HasObject("Control Chip") then
452+
if orbitedCraft:HasObject("Control Chip") then
453453
-- WINRAR!
454454
self.WinnerTeam = Activity.TEAM_1;
455455
ActivityMan:EndActivity();

0 commit comments

Comments
 (0)