teleporter on/off via script ?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
wereabbit
Posts: 53
Joined: Thu Mar 13, 2008 5:18 am

teleporter on/off via script ?

Post by wereabbit »

Hello folks,
I have an idea for my project, and i would like to know if it is possible.
I would like to make a teleporter that the player ,via a script, can switch on and off (this effect, combine with a change flat texture can be really cool ^^).
So, it is possible, or it is only a dream ?

Thx.
User avatar
edward850
Posts: 5891
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: teleporter on/off via script ?

Post by edward850 »

Read the wiki. It even tells you to do that at the top of each page, where it says forum rules.
User avatar
Enjay
 
 
Posts: 27214
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: teleporter on/off via script ?

Post by Enjay »

edward850 wrote:Read the wiki.
which is a very big document to search through if you don't know what you are searching for.


There are a few ways to do it but what I would use is a script that changes the line to a telport line type when it is required and also changes the floor (and reverses the process for switching the teleport off).

http://zdoom.org/wiki/SetLineSpecial
http://zdoom.org/wiki/ChangeFloor
wereabbit
Posts: 53
Joined: Thu Mar 13, 2008 5:18 am

Re: teleporter on/off via script ?

Post by wereabbit »

Enjay wrote:
edward850 wrote:Read the wiki.
which is a very big document to search through if you don't know what you are searching for.


There are a few ways to do it but what I would use is a script that changes the line to a telport line type when it is required and also changes the floor (and reverses the process for switching the teleport off).

http://zdoom.org/wiki/SetLineSpecial
http://zdoom.org/wiki/ChangeFloor
Thx, that's exactly what i'm looking for :D
That's work good, however, the teleporter line works only once. It is possible to make her work more than once ?
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: teleporter on/off via script ?

Post by Project Shadowcat »

wereabbit wrote:
Enjay wrote:
edward850 wrote:Read the wiki.
which is a very big document to search through if you don't know what you are searching for.


There are a few ways to do it but what I would use is a script that changes the line to a telport line type when it is required and also changes the floor (and reverses the process for switching the teleport off).

http://zdoom.org/wiki/SetLineSpecial
http://zdoom.org/wiki/ChangeFloor
Thx, that's exactly what i'm looking for :D
That's work good, however, the teleporter line works only once. It is possible to make her work more than once ?
In the map editor, check it to Repeat the Action.
Locked

Return to “Editing (Archive)”