Max height? (FAQ)

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
NullCommando
Jedi
Jedi
Posts: 1010
Joined: Sat Dec 01, 2007 12:29 pm
Games I'm Playing :: Destiny
xbox live or psn: NullCommando
Location: Earth

Max height? (FAQ)

Post by NullCommando »

Edit this in your .lua:

Code: Select all

   SetMaxFlyHeight(40)
	SetMaxPlayerFlyHeight(40)
To any number for example:

Code: Select all

   SetMaxFlyHeight(900)
	SetMaxPlayerFlyHeight(900)
Battlefront II Mission LUA Guide.doc wrote:These next two lines set the max flyheight for the level. This prevents units like jet troopers and jedi from jumping over walls, and getting out of the world, or getting on top of buildings that they should not be able to get on top of. The playerflyheight is for the player, and the maxflyheight is for other units.

SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)
Last edited by NullCommando on Wed Dec 19, 2007 6:03 pm, edited 1 time in total.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: max height

Post by Taivyx »

Just to clarify, that's in your data_***/common/scripts/*** folder, whichever .lua file for whichever gamemode you're editing
plokoon761
Master Sergeant
Master Sergeant
Posts: 165
Joined: Sun Mar 19, 2006 3:49 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: max height

Post by plokoon761 »

alright, thanx ill try that

EDIT
alright, its munging now. but I have 1 more question. can u bring the max height to anything u want? or is there a limit
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: max height

Post by [RDH]Zerted »

You're going to want a limit. Theres no reason to allow players to move up for 5 minutes. Thats really high. I've tried 3600 before and never reached the top.
plokoon761
Master Sergeant
Master Sergeant
Posts: 165
Joined: Sun Mar 19, 2006 3:49 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: max height

Post by plokoon761 »

lol k, I wont go anywhere near 1000
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: max height

Post by Fingerfood »

In ZeroEditor, it only allows for you to edit the terrain up to 365 (approximately) but how did in Boras 2, Dann created that HUGE valley on the right side. How do you edit the height for ZeroEditor?
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Re: max height

Post by Darth_Z13 »

Try lowering the height (right click and hold) and then raising the area around the hole.
Post Reply