logic relay and i/o proxy for my elevator set up
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?
Change the name of the world portal door?
Trigger to open door?
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
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
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.
Thanks again for the help
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.