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 !!
0 Kara Posted April 22, 2022 Posted April 22, 2022 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 S-T-I-N-K-Y Posted April 22, 2022 Posted April 22, 2022 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")) 1
0 Vision Posted April 26, 2022 Posted April 26, 2022 @Kotegaeshi92 Take a look to @StinkyMadnesspost.
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now