1
Help & Editing / Re: Help making Teleporters exclusive to gamemodes
« on: July 11, 2021, 09:48:45 AM »
First off, a 2-way teleporter in 8BDM makes use of thing type 10562, Teleport Entrance.
If you give this actor a Tag under the Action tab, then it can be manipulated and removed from ACS.
With the function GetCVar, you can check the current gamemode.
Finally, you'd want to remove the actor with Thing_Remove.
So, if you put them together, you get the following:
This example assumes you set the tag to 10. You can technically set the tag to anything you want, but you need to make sure the tag placed on the teleport entrance and the one passed into the function here.
You will need to give a tag to both teleport entrances in order for this to remove the teleporters on both sides of the map.
If you give this actor a Tag under the Action tab, then it can be manipulated and removed from ACS.
With the function GetCVar, you can check the current gamemode.
Finally, you'd want to remove the actor with Thing_Remove.
So, if you put them together, you get the following:
Code: [Select]
if(GetCVar("ctf")) {
Thing_Remove(10);
}
This example assumes you set the tag to 10. You can technically set the tag to anything you want, but you need to make sure the tag placed on the teleport entrance and the one passed into the function here.
You will need to give a tag to both teleport entrances in order for this to remove the teleporters on both sides of the map.