Last active
November 7, 2022 00:11
-
-
Save DRKV333/4d224c310abedce78856b140dc2256b0 to your computer and use it in GitHub Desktop.
OtherlandStartAtOrigin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StartAtOrigin extends GameInfo; | |
DefaultProperties | |
{ | |
} | |
function NavigationPoint FindPlayerStart(Controller Player, optional byte InTeam, optional string IncomingName) | |
{ | |
local NavigationPoint Start; | |
Start = Super.FindPlayerStart(Player, InTeam, IncomingName); | |
if (Start != none) | |
{ | |
return Start; | |
} | |
`log("No start point found, returning a fake one..."); | |
return Spawn(class'FakeNavigationPoint',,,,,,true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment