CrimCuttle Posted April 8, 2017 I'm trying to make a script that activates a portal somewhere. When I try to compile, it says "Function line_setportal is used but not defined." Here's my script: #include "zcommon.acs" script 1 OPEN { Line_SetPortal(6, 5, 2, 1); } What am I doing wrong here? 0 Share this post Link to post
Gez Posted April 8, 2017 Portals cannot be created dynamically. You need your portal to exist since the beginning, but you can move it with Line_SetPortalTarget. Also make sure that your zdefs.acs file is up to date. 0 Share this post Link to post
Kappes Buur Posted April 8, 2017 Portals are set up as the map is loaded, therefore they cannot be 'constructed' after the map is up and running. That is why there is no Line_SetPortal in zspecial.acs Spoiler If you do not want the portal to be accessible, you could have a barrier of some sort which is lowered or opened when the switch is activated. 0 Share this post Link to post