Teleport via script problem

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
wereabbit
Posts: 53
Joined: Thu Mar 13, 2008 5:18 am

Teleport via script problem

Post by wereabbit »

Hello,
I've got a problem with these scripts...

Code: Select all

script 10 (void)
{
	
	SetLineSpecial (243, ACS_Execute, 11);

	ChangeFloor (249, "GATE1");
	Light_Glow  (249, 255, 152, 8);

}

script 11 (void)
{
	Teleport(243, 264, 0);
}
in zdoom (hexen) format, these scripts works fine, but in udmf format, the teleport won't work :(
Any ideas ?
Thx
Last edited by wereabbit on Sun Jun 30, 2013 7:52 am, edited 1 time in total.
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: Teleport via script problem

Post by ChronoSeth »

I'm guessing you didn't set up the line's activators properly.
wereabbit
Posts: 53
Joined: Thu Mar 13, 2008 5:18 am

Re: Teleport via script problem

Post by wereabbit »

ChronoSeth wrote:I'm guessing you didn't set up the line's activators properly.
possible...
here a pic of the configuration :
Image
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Teleport via script problem

Post by cocka »

Well, in UDMF you don't have to use Line_setidentification at all.

Just read the message in the yellow rectangle: [wiki]Line_SetIdentification[/wiki]

So select the line and set 243 to its line id (line tag). Then replace the line_setid special to that one you have specified earlier in your script. Change it to an acs_execute special.

Now, in script 10, delete the setlinespecial line and you'll be ready.

Just a question. Why do you need to specify a sector tag in Teleport(243, 264, 0); ?
Locked

Return to “Editing (Archive)”