Jump to content
  • 0

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


Question

Posted

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

2 answers to this question

Recommended Posts

  • 0
Posted

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 :)

  • 0
Posted

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

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock