Difference between revisions of "FAQ: My Script Doesn't Work!"

no edit summary
imported>Jimhsu
imported>Jimhsu
Line 65: Line 65:
*'''Are you using a custom script that extends another custom script?''' There is a bug[http://forums.bethsoft.com/topic/1347451-serious-flaw-with-the-packaging-algorithm-for-bsa-creation/] in the .bsa packager where if the parent custom script is not actually present in a base form in the game, then it will not be listed in the file selector for the packager. The solution is to create a dummy mesh that has the parent script attached, or manually include it in the .bsa on build.
*'''Are you using a custom script that extends another custom script?''' There is a bug[http://forums.bethsoft.com/topic/1347451-serious-flaw-with-the-packaging-algorithm-for-bsa-creation/] in the .bsa packager where if the parent custom script is not actually present in a base form in the game, then it will not be listed in the file selector for the packager. The solution is to create a dummy mesh that has the parent script attached, or manually include it in the .bsa on build.


==I have an Actor object (or something else) and can't run a function on it. I'm getting the reference for this object from another function.==
===I have an Actor object (or something else) and can't run a function on it. I'm getting the reference for this object from another function.===
Try [[Cast Reference|casting]] the object reference that you're returning from the function. E.g.
Try [[Cast Reference|casting]] the object reference that you're returning from the function. E.g.
<source lang="papyrus">
<source lang="papyrus">
Anonymous user