Jump to content

C# Combat Range - Change through settings?


Ordush

Recommended Posts

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
Share on other sites

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 by Ordush
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...