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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...