Page 1 of 1

Bridges

Posted: Tue Jun 10, 2008 5:54 pm
by death_program
Death_program is back on the modding scene, with more noob questions! :roll:

You know in User_Error, where there are bridges that you can toggle with a switch, at least into the "on" position?

1. How do you do that? Do you need to use a WorldModel?
2. Can they be switched back and forth? (on/off)
3. Is it possible for there to be a delay?

Re: Bridges

Posted: Tue Jun 10, 2008 10:14 pm
by TronFAQ
This one is difficult to answer in a short space. There's a lot of steps involved. This is a really abbreviated version of how to make a switch.

First you need two WorldModels, one with the appearance of the switch turned on and the other off. Both sit in exactly the same location, but one is hidden at all times. You take turns swapping which is hidden, depending on the state the switch is in. The switch WorldModels are just for show. The actual SlidingSwitch object that does the work, sits in front of the WorldModels and is invisible.

You add a SlidingSwitch object, and it swaps the switch models as well as does whatever it is that the switch is supposed to activate. If you want it to turn on an energy bridge, you set the bridge to be hidden to start with. Then you send a command like "msg BridgeName (hidden 0)" to make it appear, and "msg BridgeName (hidden 1)" to make it disappear (all without the quotes). BridgeName is whatever the bridge WorldModel object is named. The same type of command is used to hide and unhide the switch models.

In the properties of the SlidingSwitch, you click the "Commands" button and type whatever commands you want the switch to do when the player turns it on, in the "PowerOnCommand" field. And whatever you want to happen when it gets switched off, goes in the "OffCommand" field.

If you want a delay, you edit the "OnWaitTime" field in the SlidingSwitch properties.

If you load the M02-03 sample map that came with the editing tools, you can steal all the parts to the switch (and the bridge) from there, and modify them.

Posted: Wed Jun 11, 2008 12:39 am
by win3k
Morning chaps
This one is difficult to answer in a short space
What he said.
You know in User_Error, where there are bridges that you can toggle with a switch
Which level? There's a fair few stunts n' tricks in UE, and it would help to know which particular portion of secret sauce you were hunting after

win3k.

Posted: Wed Jun 11, 2008 7:11 am
by death_program
tronfaq: Thanks, that explains it well enough to get me rolling.

win3k: I can't remember the level name, but it was the one where there was a column in the center, and you had to go around the column fighting ICP's and at the end of each level there was a mini-boss fight... It's hard to explain.

Posted: Wed Jun 11, 2008 10:43 am
by TRON.dll
That was the Pentagon.

OOOOOOHHHHHHHHHHH! I JUST REALIZED WHY YOU CHOSE TO USE THE PENTAGON!
The MCP mentions taking over the Pentagon in the movie! Am I right????

Posted: Wed Jun 11, 2008 12:02 pm
by zook_one
I recommend checking out the Single Player Level that Monolith provided with the Level creation tools.

There are 2 energy bridges on that level with switches that flicker them on. I have been using those bridges as a basis for a lot of things in my levels. Bridges and Forcefields, etc.

Posted: Thu Jun 12, 2008 11:21 am
by death_program
I've seen it before, but I can't remember where it is... where is the Single Player file?

Posted: Thu Jun 12, 2008 12:26 pm
by Mor.Evil-1
Open up dedit,
Then click on worlds,
Then click on retail singleplayr,
Then click and open M02-03.

All sorts of goodies you can learn from that map!

G/L enjoy =)

Posted: Fri Jun 13, 2008 10:32 am
by death_program
I tried that. I guess I can go try it again...

Posted: Fri Jun 13, 2008 2:32 pm
by Mor.Evil-1
If for any reason you dont have that level in dedit,
I would be more than happy to copy it for you and send it your way.

Just let us know =)

g/l

Mor

Re: Bridges

Posted: Sun May 10, 2009 8:57 pm
by tronman63304
i dont have map can you send it to me would make it a lo easyer for me wish i coud use turbocad