Jump to content
  • 0

Question

Posted

Hi folks, im adapting a event engine to acis 399, but some methods have changed, ive adapted the most of them but i cant get rid of this code:

"if (Math.sqrt(player.getPlanDistanceSq(zone.getLastSpawn().getX(), zone.getLastSpawn().getY())) <= getInt("zoneRadius"))"

 

getPlanDistanceSq i think maybe i should use "getCollisionRadius" but cannot make it work..

if anyone can help me ill be gratefull 

Thanks !!

4 answers to this question

Recommended Posts

  • 0
Posted
6 hours ago, Kotegaeshi92 said:

Hi folks, im adapting a event engine to acis 399, but some methods have changed, ive adapted the most of them but i cant get rid of this code:

"if (Math.sqrt(player.getPlanDistanceSq(zone.getLastSpawn().getX(), zone.getLastSpawn().getY())) <= getInt("zoneRadius"))"

 

getPlanDistanceSq i think maybe i should use "getCollisionRadius" but cannot make it work..

if anyone can help me ill be gratefull 

Thanks !!

 

Show me all java file here.

  • 0
Posted
10 hours ago, Kotegaeshi92 said:

"if (Math.sqrt(player.getPlanDistanceSq(zone.getLastSpawn().getX(), zone.getLastSpawn().getY())) <= getInt("zoneRadius"))"

if (((int) player.distance3D(zone.getLastSpawn())) <= getInt("zoneRadius"))
  • Thanks 1

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