Pryzmm Posted April 18, 2021 Share Posted April 18, 2021 Ive never gotten this error and was wondering what it is and if anyone could help me with it. The error is in the title and here it the line of code damage wasn't caused by a arrow Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
BurningBrimstone Posted April 18, 2021 Share Posted April 18, 2021 26 minutes ago, AgentGamerPro said: Ive never gotten this error and was wondering what it is and if anyone could help me with it. The error is in the title and here it the line of code damage wasn't caused by a arrow Hello! The damagecause type does not include any reference to arrow, in favor of projectile. See below:https://skripthub.net/docs/?id=2140 An example of a proper comparison: on damage of player: if event-damagecause is not projectile: Hope this helps! - Discord: Brim#0768 Link to comment Share on other sites More sharing options...
Pryzmm Posted April 18, 2021 Author Share Posted April 18, 2021 1 minute ago, BurningBrimstone said: Hello! The damagecause type does not include any reference to arrow, in favor of projectile. See below:https://skripthub.net/docs/?id=2140 An example of a proper comparison: on damage of player: if event-damagecause is not projectile: Hope this helps! I get no errors but the skript still continues. Heres the skript (Reach Detection) on damage: if event-damage cause is not projectile: # This line if attacker is player: if distance between attacker and victim is greater than {ReachDetection}: loop all players where [input has permission "{@UsePermission}"]: send "{@Alert} &7%attacker% &7is suspected to be using &aReach &7(%distance between attacker and victim% &7Blocks)" to loop-player Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
BurningBrimstone Posted April 18, 2021 Share Posted April 18, 2021 4 minutes ago, AgentGamerPro said: I get no errors but the skript still continues. Heres the skript (Reach Detection) on damage: if event-damage cause is not projectile: # This line if attacker is player: if distance between attacker and victim is greater than {ReachDetection}: loop all players where [input has permission "{@UsePermission}"]: send "{@Alert} &7%attacker% &7is suspected to be using &aReach &7(%distance between attacker and victim% &7Blocks)" to loop-player You should not have a space between "event-damage" and "cause". - Discord: Brim#0768 Link to comment Share on other sites More sharing options...
Pryzmm Posted April 18, 2021 Author Share Posted April 18, 2021 1 minute ago, BurningBrimstone said: You should not have a space between "event-damage" and "cause". the space dosent matter. I just tried and still dosent work Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
BurningBrimstone Posted April 18, 2021 Share Posted April 18, 2021 5 minutes ago, AgentGamerPro said: the space dosent matter. I just tried and still dosent work Try reformatting with this: if damage wasn't caused by projectile: All of these conditions are working fine on my server. Do you have addons conflicting? 1 - Discord: Brim#0768 Link to comment Share on other sites More sharing options...
Pryzmm Posted April 18, 2021 Author Share Posted April 18, 2021 Just now, BurningBrimstone said: Try reformatting with this: if damage wasn't caused by projectile: All of these conditions are working fine on my server. Do you have addons conflicting? I use SkBee, SkQuerty, SkRayfall, and Skript (of course) Thanks it works! 1 Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
BurningBrimstone Posted April 18, 2021 Share Posted April 18, 2021 1 minute ago, AgentGamerPro said: I use SkBee, SkQuerty, SkRayfall, and Skript (of course) Thanks it works! No problem! And remember to adjust for head vs foot height on the players, and have margin of error for lag if you're making an anticheat. - Discord: Brim#0768 Link to comment Share on other sites More sharing options...
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