Skip to content

[Problem] If RB dead, create a zone that teleports player

Featured Replies

Hi Guys,

 

i wanted to create a script in java with generates a NPoly zone which teleports the player as soon as he enters it.

The Zone works perfectly.. now i need a command which activate that zone if the RB is dead.. and deactivate the zone if RB is alive...

 

Any1 can help me with that ?

I try since 2 day's now and nothing works ...

 

greets

i think it should be something like that:

there will be just 1 zone but the effects of it are activated after rb is dead, so if the zone before rb died would be normal zone or pvp zone, u should just make this custom zone with privilages of that zone(like u dont need to hold ctrl to attack some1) and make method which is activated after rb died and disactivated after some time or when rb respawns. That would be a lot easier i think and would work the same :)

A simpliest way to do it without using zones is to use a radius formula, and for all players found on this radius, you do whatever you want.

 

isInsideRadius() method, there are some applications of this.

DoDie () method of the instance you want to add that. I invite you to do a new instance, else it will change behavior of existing instance, which isn't perhaps what you want to do.

 

Well it depends exactly you want to do, if your goal was simply that, it's a far simpliest way.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.