Raising the sky limit [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
vortexus
Private Recruit
Posts: 21
Joined: Sun Dec 28, 2008 1:37 pm

Raising the sky limit [Solved]

Post by vortexus »

Hi guys, I've got a problem that I need some help with. I'm currently experimenting, trying to learn how to do mapping well, and.. How do you raise the sky barrier(or remove it), please I am clueless on this one. I know I am probably being an annoying newbie and will be flogged of and told that I need to read the manual, but its not in the manual and I couldn't find it on this forum.
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Raising the sky limit

Post by theultimat »

To do this you would need to open up your map's LUA (located in data_***\Common\scripts\***). The file should be called (for CW Conquest, for example) ***c_con.lua. Open that file with notepad, and find the following lines:

Code: Select all

    SetMaxFlyHeight(30)
    SetMaxPlayerFlyHeight (30)
You then need to change the numbers to higher ones, thus allowing your units to fly higher. If you want it to seem like there is no barrier, just set the heights to 999, so it would look like this (if you didn't want any barrier):

Code: Select all

    SetMaxFlyHeight(999)
    SetMaxPlayerFlyHeight (999)
Hope that helps.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Raising the sky limit

Post by DarthD.U.C.K. »

in your missions luas you can find these lines:

Code: Select all

    SetMaxFlyHeight(30)
    SetMaxPlayerFlyHeight (30)
heighten them to "heighten the roof of your map" (this can be also found in the everything you need thread)

dang, you beat me
the max height of a landmap is about 200-300 by the way
Post Reply