Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kyka

ACS question. Function is "Used but not defined." ??

Recommended Posts

"Line 657 in file "script.acs" ...
script.acs:657: Function line_settextureoffset is used but not defined.
script.acs:658: Function line_settextureoffset is used but not defined.
script.acs:662: Function line_settextureoffset is used but not defined.
script.acs:663: Function line_settextureoffset is used but not defined.

The ACS compiler did not compile your script."

Can anyone tell me what this means or why this is happening.

The actual script is this:

Script 30 (void)
{
Delay(70);
Line_SetTextureOffset(99, 16, 0, LINE_FRONT, 1);
Line_SetTextureOffset(98, 16, 0, LINE_FRONT, 2);
ChangeCeiling(66, "TLITE6_5");
AmbientSound("switches/exitbutn",64);
Delay(35);
Line_SetTextureOffset(99, 0, 0, LINE_FRONT, 1);
Line_SetTextureOffset(98, 0, 0, LINE_FRONT, 2);
ChangeCeiling(66, "NFTL65WT");
AmbientSound("switches/exitbutn",64);
}


Thanks guys. :)

Share this post


Link to post

From my 1 semester of C++ I'd say you're missing a #include or something like that somewhere in the top of your script. But I'm a nub at programming and haven't tried anything for a year so wait for someone to blast my answer out of the water and answer your question correctly.

EDIT: yay I hit somewhere close to the mark :D

Share this post


Link to post

#include "zcommon.acs"

That line has to be at the top of every SCRIPTS lump if you want them to behave as documented.

Substitute "vcommon.acs" for a Vavoom mod, and "common.acs" for a plain vanilla Hexen mod.

Share this post


Link to post

Sorry Perhaps i should have been more specific.

I have the #include "zcommon.acs" at the top of the script. I have 29 other scripts in the overall script for that map and they all work fine. So is it something specifically wrong with the align texture function is more what I meant.

thanks guys

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×