Of course the map/script starts with global int 0:a;
So far so good. So where is the problem? Well, if i start my map right in the room where the buttons are, there is no problem and everything works fine. But if i start my map from the beginning and fight my way to the part with the three buttons, the script does not seem to work.
Question
Lanie
Dear Doomers,
i have a problem. I made a barrier that should open by pushing three separate buttons. For this i used a script in ACS. Map is in UDMF/GZDOOM.
Here is one example for one the three buttons:
script (31) (void) {
a = a +1;
if(a == 3)
{
SetLineTexture(10, SIDE_BACK, TEXTURE_BOTTOM, "Red");
Floor_LowerToNearest(21,100);
}
}
Of course the map/script starts with global int 0:a;
So far so good. So where is the problem? Well, if i start my map right in the room where the buttons are, there is no problem and everything works fine. But if i start my map from the beginning and fight my way to the part with the three buttons, the script does not seem to work.
Can you help me out? Got any ideas?
Have a good day,
Lanie.
Edited by LanieShare this post
Link to post
5 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.