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.
teleporter on/off via script ?
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.
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.
Re: teleporter on/off via script ?
Read the wiki. It even tells you to do that at the top of each page, where it says forum rules.
Re: teleporter on/off via script ?
which is a very big document to search through if you don't know what you are searching for.edward850 wrote:Read the wiki.
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
Re: teleporter on/off via script ?
Thx, that's exactly what i'm looking forEnjay wrote:which is a very big document to search through if you don't know what you are searching for.edward850 wrote:Read the wiki.
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
That's work good, however, the teleporter line works only once. It is possible to make her work more than once ?
- 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 ?
In the map editor, check it to Repeat the Action.wereabbit wrote:Thx, that's exactly what i'm looking forEnjay wrote:which is a very big document to search through if you don't know what you are searching for.edward850 wrote:Read the wiki.
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![]()
That's work good, however, the teleporter line works only once. It is possible to make her work more than once ?
