Anyone know what the issue is here? I've been trying to get this working for hours now.
Below is my code in my ACS scripts window:
//teleport to a new area (starts inactive)
bool firedscript = TRUE;
script 20 (void)
{
if (!firedscript) {
Teleport(39, 39, "nosourcefog");
firedscript = true;
}
}
//inactive teleport is made active
Script 21 (void)
{
firedscript = false;
}
The map is set up so that the teleport doesn't work at first. (script 20). The player must find a switch to walk over on the floor (a simple linedef script activator) that activates "SCRIPT 21" (this script 21 is meant to activate script 20 - the teleporter - and make it active). Then the player is supposed to be able to walk onto the teleporter triggering it to take him to a new area (a sector tagged 39 with a map-spot of 39). However, it simple does not work. The linedef is crossed to make the teleporter active, but when the player returns to it to use it, it simply doesn't work. I have tried everything it seems, from using a teleport destination THING tagged 39 to a map spot tagged 39 (both of which placed in the sector also tagged 39) but nothing is working. What am I doing wrong here?
EDIT: When I move the player start to the location the teleport is supposed to take you, the player can activate it from the other end on the way back but not on the way FORWARD as intended. What on Earth is going on?
Question
Cacodoomonic
Anyone know what the issue is here? I've been trying to get this working for hours now.
Below is my code in my ACS scripts window:
//teleport to a new area (starts inactive) bool firedscript = TRUE; script 20 (void) { if (!firedscript) { Teleport(39, 39, "nosourcefog"); firedscript = true; } } //inactive teleport is made active Script 21 (void) { firedscript = false; }
The map is set up so that the teleport doesn't work at first. (script 20). The player must find a switch to walk over on the floor (a simple linedef script activator) that activates "SCRIPT 21" (this script 21 is meant to activate script 20 - the teleporter - and make it active). Then the player is supposed to be able to walk onto the teleporter triggering it to take him to a new area (a sector tagged 39 with a map-spot of 39). However, it simple does not work. The linedef is crossed to make the teleporter active, but when the player returns to it to use it, it simply doesn't work. I have tried everything it seems, from using a teleport destination THING tagged 39 to a map spot tagged 39 (both of which placed in the sector also tagged 39) but nothing is working. What am I doing wrong here?
EDIT: When I move the player start to the location the teleport is supposed to take you, the player can activate it from the other end on the way back but not on the way FORWARD as intended. What on Earth is going on?
Edited by CacodoomonicShare this post
Link to post
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.