HiraaCaan Posted July 24, 2022 Share Posted July 24, 2022 my character will gives evryone is near buffs but idk how to make range thing help me Link to comment Share on other sites More sharing options...
AngryBeeQueen Posted July 24, 2022 Share Posted July 24, 2022 you gave 4 lines of information. my brother in christ you will prob not get much help. All i an give is this. BATTLESONG_ATTACH_RADIUS = 12, BATTLESONG_DETACH_RADIUS = 16, INSPIRATION_MAX = 100, INSPIRATION_GAIN_RATE = 0.024, INSPIRATION_GAIN_EPIC_BONUS = 3, INSPIRATION_DRAIN_RATE = -2, INSPIRATION_DRAIN_BUFFER_TIME = 7.5, MAX_ACTIVE_SONGS = 3, SONG_REAPPLY_PERIOD = .5, SONG_REFRESH_PERIOD = 1, This is in tuning for wigfrid. i guess you could do like (BUFFNAME)_ATTACH_RADIUS = (number) (BUFFNAME)_DETACH_RADIUS = (number) Link to comment Share on other sites More sharing options...
mexican geek Posted July 25, 2022 Share Posted July 25, 2022 My brother in christ, I will begin by saying that I am no expert in this matter, but as I see not many people responded, here's how I'd do it: if GetPlayer().prefab == "YOUR CHARACTER'S NAME HERE" then inst:AddComponent("sanityaura") inst.components.sanityaura.aura = TUNING.SANITYAURA_MED end And just replace YOUR CHARACTER'S NAME HERE with the name of the character this is for. Good luck and I hope I was able to help. :3 Link to comment Share on other sites More sharing options...
w00tyd00d Posted July 25, 2022 Share Posted July 25, 2022 (edited) The global function FindPlayersInRange will return a table of all available players within the given range: local x, y, z = inst.Transform:GetWorldPosition() -- inst here would be your character local players = GLOBAL.FindPlayersInRange(x, y, z, YOUR_RADIUS_HERE, true) -- true ensures player is alive Edited July 25, 2022 by w00tyd00d Link to comment Share on other sites More sharing options...
HiraaCaan Posted August 10, 2022 Author Share Posted August 10, 2022 On 7/25/2022 at 7:52 PM, mexican geek said: My brother in christ, I will begin by saying that I am no expert in this matter, but as I see not many people responded, here's how I'd do it: if GetPlayer().prefab == "YOUR CHARACTER'S NAME HERE" then inst:AddComponent("sanityaura") inst.components.sanityaura.aura = TUNING.SANITYAURA_MED end And just replace YOUR CHARACTER'S NAME HERE with the name of the character this is for. Good luck and I hope I was able to help. :3 thanks 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