Page 1 of 1

I have a scripting-related question.

PostPosted: 09 Feb 2018, 07:12
by TheHeartlessCookie
Is there a way I can use a script trigger to transport Tux to another sector? I need to be able to transport him when he walks into a certain area, rather than using a door.

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 08:47
by brmbrmcar
{l Code}: {l Select All Code}
Level.spawn("sector","spawnpoint")

Replacing sector for a sector and spawnpoint for a spawnpoint (keep the quotation marks).

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 09:12
by Tobbi
Also, make sure that your sectors and spawnpoints have names in the first place! :)

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 15:35
by TheHeartlessCookie
Thanks! But what script do I use? Is it covered in your advanced editor tutorial, Brm, or is there just something I've missed?

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 15:47
by Tobbi
Uh, I don't get what you're asking.

The script to use is in brmbrmcar's post as well.

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 20:20
by TheHeartlessCookie
So sorry! My laptop glitched and I didn't see his script. It works now.

Have a great day, and thank you!

Re: I have a scripting-related question.

PostPosted: 09 Feb 2018, 20:22
by Tobbi
No problem!

And, as always: If you make something worthwhile, share it with the world!

Re: I have a scripting-related question.

PostPosted: 12 Feb 2018, 09:30
by TheHeartlessCookie
Oh, most definitely! I'm working on a pretty ambitious project right now.