Teleporting something to where a portal is

Avatar
BenVlodgi
633 Posts
Posted Nov 08, 2011
Hi, the title basically says it all, I want to teleport a trigger, to where-ever a portal is placed... I've tried a few things, but I cant get it to work...is this even possible? if so how can I do it?
Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Nov 08, 2011
Replied 17 minutes later
Point_teleport and a func_portal_detector and a info_target/landmark
That's all I know.
Avatar
HMW
806 Posts
Posted Nov 12, 2011
Replied 3 days later
In Portal 1, if you place two prop_portal entities in the map (one for blue and one for orange, with their portal ID set to 0), the game will use these as the player's portals.
Anything you attach (parent) to these prop_portals will stay with them as they are moved around the map by the player.

I haven't tested this yet in Portal 2, but it might work...

Avatar
BenVlodgi
633 Posts
Posted Nov 12, 2011
Replied 6 hours later

HMW wrote:
In Portal 1, if you place two prop_portal entities in the map (one for blue and one for orange, with their portal ID set to 0), the game will use these as the player's portals.
Anything you attach (parent) to these prop_portals will stay with them as they are moved around the map by the player.

I haven't tested this yet in Portal 2, but it might work...

Works great, Thanks! :smile: :thumbup:

Avatar
Lpfreaky90
2,842 Posts
Posted Nov 12, 2011
Replied 31 minutes later

HMW wrote:
In Portal 1, if you place two prop_portal entities in the map (one for blue and one for orange, with their portal ID set to 0), the game will use these as the player's portals.
Anything you attach (parent) to these prop_portals will stay with them as they are moved around the map by the player.

I haven't tested this yet in Portal 2, but it might work...

Wow! that might solve a problem for an idea where I needed some complex stuff. Do you have any idea what happens when one of those portals got fizzled?

Avatar
ChickenMobile
2,460 Posts
Posted Nov 12, 2011
Replied 4 hours later

lpfreaky90 wrote:
Do you have any idea what happens when one of those portals got fizzled?

I'm guessing that it will temporarily have no parent. i.e. it will stay in the same place it was last.

Avatar
BenVlodgi
633 Posts
Posted Nov 14, 2011
Replied 1 day later

chickenmobile wrote:
lpfreaky90 wrote:

Do you have any idea what happens when one of those portals got fizzled?

I'm guessing that it will temporarily have no parent. i.e. it will stay in the same place it was last.

he's right .... it just stays in place

Advertisement
Registered users don’t see ads! Register now!
Avatar
HMW
806 Posts
Posted Nov 23, 2011
Replied 8 days later
Yes, the portal entity will stay in the game when it's fizzled, it's just inactive and invisible.
As soon as the player places another portal, all of the parented stuff will move to this new location.

This being the case though, you do need a mechanism to turn off the triggers attached to the portal when it's fizzled. You can do this by adding an appropriate output to all fizzlers in the map.

To turn the trigger back on, use the prop_portal's "OnPlacedSuccessfully" output.

(Oh and one other thing I forgot to mention: set the prop_portals' "Start Activated" setting to "Inactive" in Hammer, or they will show up active when the map starts. Just not in the location you'd expect...)