Wed Sep 22, 2021 9:33 pm
Hello! First time poster here.
I'm trying to build a level where when you pick up a weapon, it changes the wall textures (the point being to be dramatic when a weapon is picked up).
I'm doing this via ReplaceTextures, which works fine.
However, I need both the old texture and the new each aligned a specific way, and they don't have the same x and y alignment. Is there a way to get a script to set the x and y alignment of the new texture?
Here is essentially what I'm looking for:
script 1 (void)
SetTextureAlignment(line ID, int X, int Y);
Thu Sep 23, 2021 1:24 am
I have never used it myself, but this looks like it might do the job: Line_SetTextureOffset
Thu Sep 23, 2021 6:18 am
That did it! Thanks so much! I thought I looked through all the ACS functions for textures but apparently not.
Thu Sep 23, 2021 7:58 pm
One thing to add, for anyone looking to do this in the future. You need x and y to be fixed point numbers, so the alignment you want multiplied by 65536.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.