SetLineSpecial Arguments what they do(besides first 2)

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
Post Reply
ZdoomJ123
Posts: 4
Joined: Wed Apr 03, 2024 7:21 am

SetLineSpecial Arguments what they do(besides first 2)

Post by ZdoomJ123 »

Need to know on
"SetLineSpecial (1, 80, 10, 0, 0, 0, 0);" Function,
What the arguments after the Action Special argument do?
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: SetLineSpecial Arguments what they do(besides first 2)

Post by Jarewill »

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.
ZdoomJ123
Posts: 4
Joined: Wed Apr 03, 2024 7:21 am

Re: SetLineSpecial Arguments what they do(besides first 2)

Post by ZdoomJ123 »

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?
ZdoomJ123
Posts: 4
Joined: Wed Apr 03, 2024 7:21 am

Re: SetLineSpecial Arguments what they do(besides first 2)

Post by ZdoomJ123 »

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
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: SetLineSpecial Arguments what they do(besides first 2)

Post by Jarewill »

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);
ZdoomJ123
Posts: 4
Joined: Wed Apr 03, 2024 7:21 am

Re: SetLineSpecial Arguments what they do(besides first 2)

Post by ZdoomJ123 »

Ok Got it to work! Thx
Post Reply

Return to “Scripting”