how does setlinetexture works?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
wario
Posts: 228
Joined: Fri Oct 01, 2004 7:53 am
Location: netherlands

how does setlinetexture works?

Post by wario »

well ive been trying to get this work for hours but it doesnt seem to work. i gave the lines the good id and i dont think anything is wrong with the script

Code: Select all

#include "zcommon.acs"

script 1 (int line1)
{	
SetLineTexture(line1, SIDE_FRONT, TEXTURE_MIDDLE, "skinface"); 
}
a switch activates script 1, but nothing happens. i need help :?
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Post by jallamann »

does the argument "line1" and the line's ID match?
User avatar
wario
Posts: 228
Joined: Fri Oct 01, 2004 7:53 am
Location: netherlands

Post by wario »

jallamann wrote:does the argument "line1" and the line's ID match?
yes it is. action 121 line id 1.
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Post by jallamann »

and the activation is:

Code: Select all

acs_execute(1,0,1,0,0);
?
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

If you're only interested in changing the texture on all lines with id 1 as part of a straight forward script, then

Code: Select all

SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "skinface"); 
should do it.

ie

Code: Select all

#include "zcommon.acs"

script 1 (void) //or OPEN etc if you prefer
{	
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "skinface"); 
}
User avatar
chopkinsca
Posts: 1325
Joined: Thu Dec 11, 2003 5:03 pm

Post by chopkinsca »

Try SKINFACE instead of skinface. I can't remember, but it may be case sensitive.
User avatar
wario
Posts: 228
Joined: Fri Oct 01, 2004 7:53 am
Location: netherlands

Post by wario »

it seems enjay solved my problem

Code: Select all

script 1 (int line1) 
{    
SetLineTexture(line1, SIDE_FRONT, TEXTURE_MIDDLE, "skinface"); 
} 
doesnt work, however

Code: Select all

script 1 (void)
{    
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "skinface"); 
} 
does work. so the wiki is giving a wrong example? :?
thanks for helping me out :) .
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Post by jallamann »

no, the wiki thing just passes on whatever is in arg1 to line1
Locked

Return to “Editing (Archive)”