Announcement

Collapse
No announcement yet.

Update class conts through unrealscript?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Update class conts through unrealscript?

    I am trying to update a const within ExponentialHeightFogComponent.

    I'm currently resorting to running it through the ConsoleCommand method:
    Code:
    ConsoleCommand("set"@Fog.Component.Name@"FogDensity 0.1");
    However I'd like to do it through a normal method call. Could anyone comment on how I can change class consts like this?

    Thanks in advance.

    #2
    I didn't even know you could do it the way you're doing it

    personally I just removed the const keyword on the very same ExponentialHeightFogComponent class (as there was no Setter function) and never got any undesired side effects

    Comment


      #3
      Only by hacks. Not recommended at all.

      Comment

      Working...
      X