How to obtain killaura attacking players
-
var player = moduleManager.getModule('KillAura').target //var player = getNearestTarget() //var player = getClosestEntity(); if( mc.gameSettings.keyBindForward.isKeyDown() && KillAura.state == true && target != null && !player.isDead && Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) != 0 && !LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)){ var c1 = (mc.thePlayer.posX - player.posX)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2))) var s1 = (mc.thePlayer.posZ - player.posZ)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2))) chat.print(" C1"+c1+" S1"+s1) if(mc.thePlayer.motionX <= 0.06 || mc.thePlayer.motionZ <= 0.06) { mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1 mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1 } else { mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1 mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1 }
-
LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)
seems to be causing issues and should probably be written as
moduleManager.getModule('Teams').isInYourTeam(player)
also you should in
chat.print(" C1"+c1+" S1"+s1)
write "chat" with a capital C because "Chat" is not defined, to know what is defined see:
https://liquidbounce.net/docs/ScriptAPI/Global Classes, https://liquidbounce.net/docs/ScriptAPI/Global Instances and maybe https://github.com/CCBlueX/LiquidBounce/blob/1cb655a179cb6fb4d3423e28b37348fe7c814963/shared/main/java/net/ccbluex/liquidbounce/script/Script.kt#L45 -
@aftery Almost any support question asked here can be solved with enough research and knowledge. You don't have to tell him what he's doing wrong but if you are here, know the answer - which i assume is true - then why not help him out?
I can only speak for myself and in my experience it was not as obvious to just "rtfm" because there is no good "How to LiquidBounce script".
The ressources exist and do solve your question but learning where they are, how to use them and what they mean was difficult and took time for me and probably other people too. -
@aftery
i think this person has read docs, i once too made the mistakes i see in this thread.
i just answering the peoples question will benefit everyone, as these people also "level-up" their knowledge they may publish scripts, help other people and so on.as to the scriptAPI in general, it may not be the best implementation but it certainly works and is useful. i think many people are willing to sacrifice a few frames to modify their game.
you could argue that forge mods achieve the same but they are for beginners more difficult to create.
i think the scriptAPI is an awesome tool that makes LiquidBounce the 1.8 client for eternity. it may not get updated anymore but the ability to, to some extend, just do that yourself is unique among the vast landscape of clients.