Ordush 185 Posted April 12, 2018 Share Posted April 12, 2018 Hey all I set the combat range in the top of my C# With the code @Droidz has provided. public float Range { get { return CombatRange; } } It seems that, it doesn't work if i don't set it as read-only (get). I want to be able to change the range from fightclass settings, does anyone know how to get this to work? :) Added this here, since it's more a all around thing, than vanilla only. :) Link to comment https://wrobot.eu/forums/topic/9123-c-combat-range-change-through-settings/ Share on other sites More sharing options...
Zan 99 Posted April 12, 2018 Share Posted April 12, 2018 This doesn't work? public float Range { get { return FightClassSettingsHere; } } Link to comment https://wrobot.eu/forums/topic/9123-c-combat-range-change-through-settings/#findComment-42380 Share on other sites More sharing options...
Ordush 185 Posted April 12, 2018 Author Share Posted April 12, 2018 (edited) 14 minutes ago, Zan said: This doesn't work? public float Range { get { return FightClassSettingsHere; } } Well, yes it does. But since it's read-only i can only set it once. I wanted to change Range based on conditions. :) Edit: LoL.Brainfart.. nevermind.. how did i not see the "return" rofl.. Works fine. :) Edited April 13, 2018 by Ordush Link to comment https://wrobot.eu/forums/topic/9123-c-combat-range-change-through-settings/#findComment-42381 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