How to enter a sealed hangar (untested theory)

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
xwingguy

How to enter a sealed hangar (untested theory)

Post by xwingguy »

This *should* allow you enter a hangar like the ones on the federation coreship.

This requires a region in the hangar entrance. Name doesn't matter as long it's the same name in your lua.

OnEnterRegionName(
function(region, character)
SetProperty(GetCharacterVehicle(character), "BuildingCollision", "CLEAR")
end,
"Region0"
)
OnLeaveRegionName(
function(region, character)
SetProperty(GetCharacterVehicle(character), "BuildingCollision", "")
end,
"Region0"
)
Last edited by xwingguy on Fri Jun 30, 2006 3:23 pm, edited 1 time in total.
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: How to enter a sealed hangar (untested theory)

Post by [RDH]Zerted »

So BuildingCollision lets players move through walls?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: How to enter a sealed hangar (untested theory)

Post by Penguin »

you can do that or edit the msh.option and add -nocollision
xwingguy

Re: RE: How to enter a sealed hangar (untested theory)

Post by xwingguy »

[RDH]Zerted wrote:So BuildingCollision lets players move through walls?
It should allow you to pass through any building with a healthbar. If it doesn't have a health bar then it's considered a prop not a building and will be quite solid.
xwingguy

RE: Re: RE: How to enter a sealed hangar (untested theory)

Post by xwingguy »

Bumped because of slight change in code.
darthpingu

Re: RE: How to enter a sealed hangar (untested theory)

Post by darthpingu »

Penguin wrote:you can do that or edit the msh.option and add -nocollision
Wouldn't that make it all nocollision then?
Tohron

Re: How to enter a sealed hangar (untested theory)

Post by Tohron »

xwingguy wrote:This *should* allow you enter a hangar like the ones on the federation coreship.

This requires a region in the hangar entrance. Name doesn't matter as long it's the same name in your lua.

OnEnterRegionName(
function(region, character)
SetProperty(GetCharacterVehicle(character), "BuildingCollision", "CLEAR")
end,
"Region0"
)
OnLeaveRegionName(
function(region, character)
SetProperty(GetCharacterVehicle(character), "BuildingCollision", "")
end,
"Region0"
)
So this is entered in the game mode LUA file (like c_con.lua for CW Conquest)?

And a question, could this be done for something else, like water? Because the water I'm using in one of my maps has collision geometry for flyers (I don't know why) and I want to get rid of it (the geometry)

Nice find, and thanks in advance for any help.
xwingguy

RE: Re: How to enter a sealed hangar (untested theory)

Post by xwingguy »

Terrain collision is something completely different from any kind of object collision
Post Reply