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

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...