Kotegaeshi92 Posted April 22, 2022 Posted April 22, 2022 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 !! Quote
0 Kara Posted April 22, 2022 Posted April 22, 2022 On 4/22/2022 at 7:17 AM, 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 !! Expand Show me all java file here. Quote
0 StinkyMadness Posted April 22, 2022 Posted April 22, 2022 On 4/22/2022 at 7:17 AM, Kotegaeshi92 said: "if (Math.sqrt(player.getPlanDistanceSq(zone.getLastSpawn().getX(), zone.getLastSpawn().getY())) <= getInt("zoneRadius"))" Expand if (((int) player.distance3D(zone.getLastSpawn())) <= getInt("zoneRadius")) 1 Quote
0 Vision Posted April 26, 2022 Posted April 26, 2022 @Kotegaeshi92 Take a look to @StinkyMadnesspost. Quote
0 Tryskell Posted May 3, 2022 Posted May 3, 2022 (edited) if (player.isIn3DRadius(zone.getLastSpawn(), getInt("zoneRadius")) ...or 2D if you don't need Z check. Edited May 3, 2022 by Tryskell Quote
Question
Kotegaeshi92
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
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.