Please or Register to create posts and topics.

Portal surface triggering

Page 1 of 3Next

How do i make my portals trigger stuff? I have seen this done before somehow

Just when I think I understand the system, it changes on me.

You can use a func_portal_detector and then fire some outputs like:

- OnStartTouchPortal > [whatever]
- OnEndTouchPortal > [whatever]

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

okay i got that working, thanks.

though it doesnt change what i was trying to do before. I have the diversity vents and their suction doesn't seem to be transfering through portals. Even the dust doesn't seem to cooperate with most portal surfaces i have

Just when I think I understand the system, it changes on me.

I see. Well I've reminded that Reepblue made a Portal2 map including that feature where you suctioned turret by the diversity vents. You can download it and decompile it...

Anyway, he also released some "Portal2 stuffs" including the diversity vents in Gamebanana

You can learn how to make what you need from there :wink:

I think what you need though is to activate some trigger_pushes using those portal_detectors. Ofc do not forget to check the proper flags in order to make them suction whatever you want, e.g. "physics objects" for normal props, or "NPCs" for turrets...

For the dust you could parent it to a prop_portal (also activatable by your portal_detectors). This is more complex. Start by checking above stuff.

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

Point_push is what you need to use a diversity vent through a portal. It works through portals by itself, so you don't need to do any kind of workaround. Just place it under your vactube and you're done.

Sprowl wrote:
Point_push is what you need to use a diversity vent through a portal. It works through portals by itself, so you don't need to do any kind of workaround. Just place it under your vactube and you're done.

OH... great to know :thumbup:

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
Sprowl wrote:
Point_push is what you need to use a diversity vent through a portal. It works through portals by itself, so you don't need to do any kind of workaround. Just place it under your vactube and you're done.

that's what i was doing, but it wasn't working on half the portal panels, nor was the dust. I will take a look at the map from the earlier post to see what differances there were

EDIT: AUGH Y U NO PAKRAT

DOUBLE EDIT: still not getting it to work

Just when I think I understand the system, it changes on me.

in my maps with vents for backstock I use the point push, but to avoid any problems that it may have, I also parent push triggers to the portals, then activate them depending on which portal is placed under the vent point.



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps
BenVlodgi wrote:
...I also parent push triggers to the portals...

dude, what? How do I even....
Do you mean the portalable surfaces, or the actual portals i fire from my portal gun?

Just when I think I understand the system, it changes on me.
Fracture wrote:
BenVlodgi wrote:
...I also parent push triggers to the portals...

dude, what? How do I even....
Do you mean the portalable surfaces, or the actual portals i fire from my portal gun?

You can add two prop_portals (static portals) and set the parents of each point_push to them. Then when you fire a portal, it reuses the static portals and the point_push children will follow it. This was at least true in the original Portal and Ben's comment indicates it's still possible. You just need to set up the logic to enable and disable the triggers themselves based on whether or not a portal is under the suction tube.

Page 1 of 3Next