If I try to do it by standing at the linedef and using the item from my inventory, it doesn't change the texture or produce the sound, but it DOES remove the item from my inventory and run the "check if solved" script.
I had the linedef texture set as a switch in the ANIMDEFS lump, and began to suspect maybe that was the problem. Nope. Removing its switch status makes it refuse to change the texture or play the sound at all. Granted, it plays the sound by default probably because the texture is considered a switch, so i haven't scripted it to make the sound myself; i DID script it to change the texture though.
Script for when the item is used on the first of five puzzle linedefs, tagged 51-55:
Code: Select all
script 51 (void) // run this every time a puzzle piece is put in place
{
timeworks++; // increases 'timeworks' by 1
SetLineTexture(51,SIDE_FRONT,TEXTURE_BOTTOM,"SCSWHRG1"); // changes puzzle switch texture
ACS_Execute(103,0,0,0,0); // runs the 'check if puzzle complete' script
}