Code: Select all
sector_set3dfloor(tag, type, flags, alpha, hi-tag/line ID)
type: 1: defines a solid 3D floor.
hi-tag/line ID: If type has the value 8 added to it this will give the control linedef a line ID. Otherwise this parameter seves as a high-byte for the sector tag in order to allow more than 256 3D floor definitions.
Now I want the sidedef texture of this control linedef to change when a certain condition has been reached. I have to activate the script on the linedef representing the in-game surface of the control linedef, and the rest of the script works fine. However, when the condition has been reached, the sidedef texture remains unchanged.
This is what the script looks like:
Code: Select all
//////////////////////////////////////////////////////
// Script 3: Activates MedicStation near Airlock //
//////////////////////////////////////////////////////
int healthuse;
script 3 (void)
{
{
healthuse++;
if (healthuse < 6)
{HealThing(10);
}
if (healthuse == 5)
setlinetexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "XMEDIC02");
}
}