ZScript - checking if a sector has portals

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

ZScript - checking if a sector has portals

Postby Gutawer » Fri Dec 08, 2017 4:26 pm

How can I check if a Sector has a portal on either its bottom or top? I see a lot of portal-related stuff in the Sector struct, but I'm not entirely sure how to use any of it to test for portals.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: ZScript - checking if a sector has portals

Postby Graf Zahl » Mon Dec 11, 2017 9:49 am

It depends on what precisely you want to test. Physical presence of a portal by itself does not mean much.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: ZScript - checking if a sector has portals

Postby Gutawer » Mon Dec 11, 2017 11:09 am

I essentially wanna test if the mapper has put a portal on the top or bottom of their sector for a stacked sector effect - I'm working on an FX system, but I need to disregard portal sectors' flats for testing which effect to spawn since the player would never see those flats anyway.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests