logic relay and i/o proxy for my elevator set up

Avatar
mynameiscody07
13 Posts
Posted Jan 25, 2012
I am new to Hammer and have been working on maps for the passed week or so and am now in the process of making my own elevator setup instance. as in arrival and departure elevators. I have placed prop linked portal doors at the end of the hallways and linked them together to make sure that instance runs as an individual map and it does. My next step is to unlink those doors and save the instance.

Now I need to be able to communicate with these doors once I load the instance into another map. Can anyone help me out on how this should be done. As in best practices. I have looked at tutorials and other things but I do not quite understand the exact process here.

I have seen some of the built in enstances use logic relays and i/0 proxy to communicate with the instance.

If my doors are named door_entrance and door_exit, how would you set this up?

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Jan 25, 2012
Replied 20 minutes later
What are you trying to do?
Change the name of the world portal door?
Trigger to open door?
Avatar
mynameiscody07
13 Posts
Posted Jan 25, 2012
Replied 30 minutes later
Sorry I guess I forgot to mention that. I am trying to open the doors. Basically on my maps I will place another door prop link portal door and I want to link to the doors in the instance.
Avatar
spongylover123
944 Posts
Posted Jan 25, 2012
Replied 18 minutes later
This is for the linking of the world portal doors:

Open your elevator vmf and put a
Func_instance_prams.
Name it $LinkedPartner
Then in your prop_linked_portal_door.
Set the parameter "Linked Partner" to $LinkedPartner

This is for opening the doors:
Make a func_instance_io_proxy
Make the output
OnProxyRelay1 - prop_linked_portal_door - Open
OnProxyRelay2 - prop_linked_portal_door - Close

Avatar
mynameiscody07
13 Posts
Posted Jan 26, 2012
Replied 2 hours later
Thanks for the help but this is really confusing me right now. I don't know if I didn't explain what I want clearly or if I just don't understand what you are telling me. But I will try and explain better just in case that is the problem.

I have created an instance which holds the arrival and departure elevators. a4 model and logic. at the end of the walkways I have added a linked portal door. So there is one which the players leaves through after arriving and one where the players enters right be before leaving the map.

I need to be able to add my instance to any map and link the first door to a door at the beginning of the puzzle section of the map. and the second door needs to be linked to a door at the ending of the puzzle section of the map.

I hope that is more clear. And if that is what your previous post is telling me to do. Then please give a little more detail. As I am very knew to all this.

Thank you

Avatar
spongylover123
944 Posts
Posted Jan 26, 2012
Replied 43 minutes later
It's pretty much self explanatory in my last post.
You have a parameter that needs to be edited to fit your needs in each map.
And the parameter must be filled by a func_instance_prams, so it can be later changed when used as an instance.
If you want the door to open and close, you need the func_instance_io_proxy, which handles the outputs and inputs of the instance.
For more information about these entity visit the Valve Developer Community.
Hope this Helps.
Avatar
mynameiscody07
13 Posts
Posted Jan 26, 2012
Replied 8 hours later
Okay Thankyou for the help. My problem was figuring out how to link back the other way. As in, from map puzzle door to the instance door but I figured it out. instance_name-door_name

Thanks again for the help

Avatar
ChickenMobile
2,460 Posts
Posted Jan 27, 2012
Replied 17 hours later
The exit and entry in the same instance... why didn't valve think of that?!.. Oh wait, linked portals...
Avatar
mynameiscody07
13 Posts
Posted Jan 27, 2012
Replied 1 hour later
hmmmmmm. sarcastic much
Avatar
Brainstone
401 Posts
Posted Jan 27, 2012
Replied 5 hours later
Did you know that if you name your doors "@entry_door" and "@Exit_door" the elevator instances form valve will open the entry door and close the exit door by themselves?
Avatar
mynameiscody07
13 Posts
Posted Jan 27, 2012
Replied 6 hours later
No I did not know that. But Everything is working how I want it now.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Spam Nugget
492 Posts
Posted Jan 27, 2012
Replied 3 hours later

BrainstoneX wrote:
Did you know that if you name your doors "@entry_door" and "@Exit_door" the elevator instances form valve will open the entry door and close the exit door by themselves?

really? thats kinda aewesome.