[ACS] Unable to change line special
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!)
- Wivicer
- Posts: 367
- Joined: Sat Jul 27, 2013 4:39 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Contact:
[ACS] Unable to change line special
I'm trying to make it so that when a line is activated in a certain manner, it runs a script that then changes the parameters that are passed to said script. The script is named, and using SetLineSpecial with the line's id, ACS_ExecuteAlways and then the script name and arguments doesn't seem to be working. Am I trying to do something impossible, or am I doing something wrong?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [ACS] Unable to change line special
SetLineSpecial cannot do this. The name gets converted to a string index which then gets interpreted as a script number - which most likely does not exist.
- Wivicer
- Posts: 367
- Joined: Sat Jul 27, 2013 4:39 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Contact:
Re: [ACS] Unable to change line special
Ok cool. I'll just change it from a named script to a numbered script then.
Thanks!
Thanks!