Serious Sam 3: BFE

Serious Sam 3: BFE

King of the Hill
Mauritsio  [developer] 16 Feb, 2017 @ 10:30am
For modders: configure your map for custom hill spawns
If you want your map to include custom hill spawns and not use items as hills, create a Script entity and paste this code into it:

worldGlobals.CustomKOTHEnabled = true worldGlobals.Position1 = Marker1:GetPlacement() worldGlobals.Position2 = Marker2:GetPlacement() worldGlobals.Position3 = Marker3:GetPlacement() worldGlobals.Position4 = Marker4:GetPlacement() worldGlobals.Position5 = Marker5:GetPlacement()

For every hill point, spawn a PathMarker entity on the place where you want a hill to be, then, while holding Ctrl+Shift+Alt, drag the marker entity onto one of the "MarkerX" variables. Do this until you have all hill points configured and all the Marker variables are colored green. If you skip one, you will break the script, and that leads to scary stuff!
Last edited by Mauritsio; 16 Feb, 2017 @ 10:31am