Jump to content

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...