Counting Portals [SOLVED]
Quote from Spam Nugget on January 19, 2012, 4:11 amTrying to get a system working which counts the number of portals used, but im having some trouble wit the crucial part-detecting portal placement
![]()
Ive tried using func_portal_detectors, but the problem is that if you shoot say a blue portal in one, and then another blue portal insode the same detector, only the first portal is registered. There is no way I am going to be able to limit portalable areas to room for one portal only so I can split up the detectors or anything like that as there would be places where the detectors would overlap, sending two outputs for the one portal. And using placement helpers everywhere to prevent overlap would ruin the map.
So i guess my question is wether there is any other way to detect a successful portal placement, maybe some sort of script or something? All I nedd is some way to fire an output on placement of a portal.
Can anyone help?Edit: Dont worry, ive just figured out a way to do it! Turns out logic_playerproxy has outputs for placement of portals, and this works great for what i want
Trying to get a system working which counts the number of portals used, but im having some trouble wit the crucial part-detecting portal placement
Ive tried using func_portal_detectors, but the problem is that if you shoot say a blue portal in one, and then another blue portal insode the same detector, only the first portal is registered. There is no way I am going to be able to limit portalable areas to room for one portal only so I can split up the detectors or anything like that as there would be places where the detectors would overlap, sending two outputs for the one portal. And using placement helpers everywhere to prevent overlap would ruin the map.
So i guess my question is wether there is any other way to detect a successful portal placement, maybe some sort of script or something? All I nedd is some way to fire an output on placement of a portal.
Can anyone help?
Edit: Dont worry, ive just figured out a way to do it! Turns out logic_playerproxy has outputs for placement of portals, and this works great for what i want

I think in terms of boolean variables. Generally, it makes things easier.