Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
CrimCuttle

UDMF: Line_SetPortal is used but not defined

Recommended Posts

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?

Share this post


Link to post

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.

Share this post


Link to post

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

z8OrhXF.png

 

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×