Issue with dev kit in changing light color

This has to be some kind of bug or perhaps I am missing something but I have a small issue that doesn’t make any sense to me. I made a mod that turns the lamp post into an alarm system when enemies pass by. Everything works except changing the light color. Actually it changes on the server end but not the client end. Now I have tried just about everything I believe. I set up a custom event that runs on server, I actually tried all options such as run on client and multicast just to rule out any possibilities or bugs even though I should only have to use run on server. What is even weirder is that I can change colors, even on the client side like if I set up a random color to change every second it will work. The issue is when the player runs into the trigger it is as if the casting is not working correctly and its not getting the spotlight reference but that doesn’t make much sense since the casting should work and does work with ever other mod I ever created. So if any body has an idea why this is happening I would appreciate it. By the way when I say change the color I do mean at run-time, not before the game starts.

First things first, this is completely of the top of my head and it might be completely unrelated!

I think you have to build in a check that ONLY the server changes this colour. My guess is that the server will change the colour, but the clients overwrite this change by doing their own.
I believe the check for it is used in the TheIsland level blueprint.

Not sure if this has anything to do with it but its worth a shot.

I think I already tried that but I guess I could try again just to be sure but this shouldn’t happen from my knowledge. I say this for a 2 reasons.

  1. I made the event custom and made it run on server so if it is from client it is telling the server to exec the command, i believe.
  2. I have used the run on server with my teleportation mod where I did run into what you describe except probably backwards, where the client was trying to teleport player but server was not letting it happen. So thats when I set up the custom event to run on server and it worked.
    Run on server is supposed to run the command from the client to the server so that the server exec the command so I just don’t understand. However, it def has to be a server/client issue but I have always solved these but its like this issue wants to just be a pain in my butt. Smh, I guess I’ll try anything at this point, until I find the issue. I just need to step away from the PC and rethink everything.

Well I finally fixed it. Smh what a pain it is. Thanks for your input, it pointed me in the right direction and I got it working

Good to hear that :slight_smile: