Jump to content
  • 0

Teleport Dome instead of Kill Dome


Magz

Question

I want to convert this simple dome script from a kill dome to a teleport dome. 

 

I know setDamage 1 is to kill the player, what would I add instead to have someone teleported out instead?

if ((getPlayerUID player) in ["0" , "0" , "0"]) exitWith {    
titleText ["Welcome Home!", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", name player], "PLAIN DOWN"]; // welcomes you with your name
};
// What happens if unauthorized players get into the dome
titleText ["You're entering a restricted area, please leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Last warning, you have 5 seconds to leave!", "PLAIN DOWN", 3];
sleep 5;
titleText ["Bang! You should've left...", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

 

I want to convert this simple dome script from a kill dome to a teleport dome. 

 

I know setDamage 1 is to kill the player, what would I add instead to have someone teleported out instead?

if ((getPlayerUID player) in ["0" , "0" , "0"]) exitWith {    
titleText ["Welcome Home!", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", name player], "PLAIN DOWN"]; // welcomes you with your name
};
// What happens if unauthorized players get into the dome
titleText ["You're entering a restricted area, please leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Last warning, you have 5 seconds to leave!", "PLAIN DOWN", 3];
sleep 5;
titleText ["Bang! You should've left...", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

 

change this line:

player setDamage 1;

to something like:

player setPos [xxx,yyy,zzz];

(obviusly change xyz to the position you had in mind)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...