Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Can't get Light switches to work in final game

Author
Message
CreatorNuke
14
Years of Service
User Offline
Joined: 24th Jan 2012
Location:
Posted: 25th Jan 2012 18:10
My problem is that the things I have tested in my game works fine in the Test Game thing, things like turning dynamic ligts on / off works fine. But when I create a game executable, none of these lights work with their switches, they just appear ON all the time. Even ligths with the lightsoff script is on all the time. I have no idea why this is so different from the Test Game thing.

Exp: I have a light with Lightoff script in main, I have a switch in the room with the ligts name in its IFUSEd field. When I test the game it works, the light is off, when I press the switch the light turns on.
However when I make a game executeable, I walk into the room and the light is just on all the time, and the switch does nothing..


My Ambience level is 1 and Colors Red/Green/Blue are 128, sky is skybank\natural\Ngt (Night)

Any ideas?

Noob
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 25th Jan 2012 21:23
Nuke, it sounds like, to me anyway something stupid. When you edited the lights fpi. Did you edit it as an admin?

replace the lights and the switch. Reedit their fpi's and try again.

you could also check the lightoff script to make sure that there isn't a plrwithin condition in it which would turn the light on if the player got close.
Teabone
Valued Member
20
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 1st Feb 2012 07:17
In the setup script that is in your build's folder. I think dynamic shadows needs to be on. I noticed that when I make builds its automatically off and I had to set it to "1" in the setup file.

Login to post a reply

Server time is: 2026-07-01 22:13:25
Your offset time is: 2026-07-01 22:13:25