Stuck

Avatar
Mplayer
51 Posts
Posted Jul 15, 2011
Hello everyone. I have a queastion... I`m working on a map and i what do i want to do is if the player have both portals in one room, a door to open. Can someone help me pls. A link to a tutorial or anything will work. Thank you and sorry for my bad english.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Jul 15, 2011
Replied 5 minutes later

Create a brush with trigger texture in your room and tie it to the entity "func_portal_detector". Add to this entity the following output:

OnStartTouchBothLinkedPortals
<name of the door>
Open
Avatar
Mplayer
51 Posts
Posted Jul 15, 2011
Replied 25 minutes later
Ok it works ... but i dont acctualy have a door i have a func_tracktrain and its not working with it

L.E : ok its working im just stupid, THX

Avatar
Mplayer
51 Posts
Posted Jul 15, 2011
Replied 3 hours later
Sorry for double post.
What do I do if i want to enable this trigger when my func_tracktrain is in a position? I need the because the player can shoot both of his portals when he is in the room and activate the trigger and i don`t want that. Thx in advance !
Avatar
Skotty
671 Posts
Posted Jul 15, 2011
Replied 35 minutes later
Tracktrains are moving along path_tracks. Each path_track can fire a output called "OnPath". This means, this output will be fired if the tracktrain is on this path_track/passing it.
So just set a path_track of your tracktrain at the position you want (like a sensor).
Avatar
WinstonSmith
940 Posts
Posted Jul 15, 2011
Replied 2 hours later
I think it's OnPass. Just saying so there's no confusion.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Mplayer
51 Posts
Posted Jul 16, 2011
Replied 8 hours later
Thx you it`s working !