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

Commit 6863fb8

Browse files
authored
Merge pull request #64 from tomflenniken/development
Added support for brain area in maginot.lua
2 parents a02add4 + 8d86ab8 commit 6863fb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Missions.rte/Activities/Maginot.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ function MaginotMission:StartActivity()
6161
local brain = CreateAHuman("Brain Robot", "Base.rte")
6262
--Move the brain to the right spot.
6363
brain.Pos = Vector(2328 + player * 24,1240)
64+
--If the brain area is provided, use that instead.
65+
if SceneMan.Scene:HasArea("Brain") then
66+
brain.Pos = SceneMan.Scene:GetOptionalArea("Brain"):GetCenterPoint()
67+
end
6468
--Store this position.
6569
self.spawnPos[player] = brain.Pos
6670
--Equip the brain with a pistol.

0 commit comments

Comments
 (0)