Jump to content
  • 0

Silent teleporting, but in acs?


Skemech

Question

Ik how to do silent teleporting, I believe the action id is 71. However I wanna know if you can do exaclty this but in acs. The acs command for teleport has that giant annoying green partical effect. The main reason I need acs and not traditional, is cause in the wad, when you filp a certain switch, it teleports you someplace new, but if I do it through acs I can

 

==========================

 

script 69420 (void)

{

        silent teleport (to some coordinates);

        Setmusic (0, "Songname");

}

 

=================================

 

I wanna change the song thats playing at the same time of the teleportation

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0

unfortunatly it didn't teleport me at all, with or without the green particle effect. I just flat out stayed in the same room

Share this post


Link to post
  • 0

You'll probably want something like this:

 

#include "zcommon.acs"

script 1 ENTER {
	Thing_ChangeTID(0, 100); //assign a tag to the player
}

script 69420 (void) {
  	TeleportOther(100, 1, 0); //teleport player to teleport destination with the tag of 1
} 

ACS won't recognise the player unless you assign them a specific tag first.

Share this post


Link to post
  • 0

You could also just use the sector action thing "9998 - Actor Enters Sector" and let that execute your script that switches the music when the player teleports into the sector. That way you don't need to use ACS for the teleport at all and the music switch is triggered separately. Same effect but less hassle.

Edited by Gregor

Share this post


Link to post
  • 0
22 hours ago, Gregor said:

You could also just use the sector action thing "9998 - Actor Enters Sector" and let that execute your script that switches the music when the player teleports into the sector. That way you don't need to use ACS for the teleport at all and the music switch is triggered separately. Same effect but less hassle.

Ok, so not only did you just solve the current problem I was having, but you solved a few others too. Thank you so much

Share this post


Link to post
  • 0
8 hours ago, Skemech said:

Ok, so not only did you just solve the current problem I was having, but you solved a few others too. Thank you so much

My pleasure.

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...