benstei21 Posted February 13, 2018 Share Posted February 13, 2018 I looked at Red Rocked TV`s video on how you make a light switch inside the CK. I have done everything in his video. Now when I am at the last stage where I have to compile the script it does not want to work. here are the errors; Compiling "BedroomSwitch"...C:\Users\Benjamin\AppData\Local\Temp\PapyrusTemp\BedroomSwitch.psc(6,19): IsEnable is not a function or does not existC:\Users\Benjamin\AppData\Local\Temp\PapyrusTemp\BedroomSwitch.psc(6,1): cannot cast a void to a bool to perform a condition checkNo output generated for BedroomSwitch, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on BedroomSwitch I have no idea on how I should fix them or anything. plz help :/ Here is my code btw: Scriptname BedroomSwitch extends ObjectReference ObjectReference Property BedroomLights Auto Event OnActivate(ObjectReference akActionRef)If (BedroomLights.IsEnable())BedroomLights.disable()ElseBedroomLights.enable()EndIfEndEvent Link to comment Share on other sites More sharing options...
MissingMeshTV Posted February 14, 2018 Share Posted February 14, 2018 The error is in the first line of your script. The error report pretty much points it out to you: IsEnable is not a function or does not exist You just need to add a "d" to IsEnable so it is corrected to IsEnabled. A simple typo. Fix that and it should compile. :wink: The error message are pretty good at telling you what you've done wrong once you get used to things. Also, this is the sort of question you really should be putting in the CK forum. You're far more likely to get a response faster there than in this one. Link to comment Share on other sites More sharing options...
Recommended Posts