Jump to content

Fallout 4 Creation kit batch compile error


benstei21

Recommended Posts

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 exist
C:\Users\Benjamin\AppData\Local\Temp\PapyrusTemp\BedroomSwitch.psc(6,1): cannot cast a void to a bool to perform a condition check
No 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()
Else
BedroomLights.enable()
EndIf
EndEvent

 

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...