Need to know on
"SetLineSpecial (1, 80, 10, 0, 0, 0, 0);" Function,
What the arguments after the Action Special argument do?
SetLineSpecial Arguments what they do(besides first 2)
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Re: SetLineSpecial Arguments what they do(besides first 2)
I recommend using the ZDoom Wiki for checking what functions do.
In this case those arguments are what should be passed onto the special.
For example if you were to use this function to set Generic_Door on a line, you would have to specify the parameters of the door using the arguments.
In this case those arguments are what should be passed onto the special.
For example if you were to use this function to set Generic_Door on a line, you would have to specify the parameters of the door using the arguments.
Re: SetLineSpecial Arguments what they do(besides first 2)
I need to set flags on a linedef that arent there when the map starts including repeatable action do I use SetLineSpecial to do it?
And If not, what?
And If not, what?
Re: SetLineSpecial Arguments what they do(besides first 2)
I'm trying to make a door openable that isn't at the beginning of the map via script here is the script I have now:
"
script 1 (void)
{
Print (s: "A Door Unlocked");
SetLineSpecial(10,12);
SetLineActivation(10, SPAC_Use, 1);
}
"
This is set to activate when a switch is pressed for a door elswhere on the map
Before the switched is pressed It doesnt do anything but after it is it makes the door open sound, but then It doesnt open
"
script 1 (void)
{
Print (s: "A Door Unlocked");
SetLineSpecial(10,12);
SetLineActivation(10, SPAC_Use, 1);
}
"
This is set to activate when a switch is pressed for a door elswhere on the map
Before the switched is pressed It doesnt do anything but after it is it makes the door open sound, but then It doesnt open
Re: SetLineSpecial Arguments what they do(besides first 2)
That most likely happens because you didn't specify the speed at which the door should open, this is what the SetLineSpecial arguments are for.
Doom doors usually have a speed of 16 and a delay of 150, so you have to set those parameters of your door function:
SetLineSpecial(10,12,0,16,150);
Doom doors usually have a speed of 16 and a delay of 150, so you have to set those parameters of your door function:
SetLineSpecial(10,12,0,16,150);
Re: SetLineSpecial Arguments what they do(besides first 2)
Ok Got it to work! Thx