Page 1 of 1

How to enter a sealed hangar (untested theory)

Posted: Thu Jun 29, 2006 5:51 pm
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"
)

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

Posted: Thu Jun 29, 2006 10:48 pm
by [RDH]Zerted
So BuildingCollision lets players move through walls?

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

Posted: Fri Jun 30, 2006 2:35 am
by Penguin
you can do that or edit the msh.option and add -nocollision

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

Posted: Fri Jun 30, 2006 10:21 am
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.

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

Posted: Fri Jun 30, 2006 3:24 pm
by xwingguy
Bumped because of slight change in code.

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

Posted: Mon Jul 03, 2006 3:17 pm
by darthpingu
Penguin wrote:you can do that or edit the msh.option and add -nocollision
Wouldn't that make it all nocollision then?

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

Posted: Tue Jul 04, 2006 8:39 pm
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.

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

Posted: Tue Jul 04, 2006 11:59 pm
by xwingguy
Terrain collision is something completely different from any kind of object collision