fluffyrandomeow Posted October 24, 2018 Share Posted October 24, 2018 (edited) Hello everyone. This is my first post and I am currently working on learning scripting in Creation Kit, and whenever I attempt to compile my script while creating a new event, it says that CustomEvent does not exist. This is my file that I have for testing so far: Scriptname testcustomevent extends Object Reference Actor property PlayerRef Auto CustomEvent WeaponOut If PlayerRef.IsWeaponDrawn() Var[] kargs = new Var[] kargs[0] = true SendCustomEvent("WeaponOut", kargs)EndIf Edited October 24, 2018 by fluffyrandomeow Link to comment Share on other sites More sharing options...
fluffyrandomeow Posted October 31, 2018 Author Share Posted October 31, 2018 (edited) Edit: it seems that I am missing the ScriptObjects script from my Data/Scripts/Source folder, and thus sendcustomevent is not recognized as a function, and defining a customevent isn't defined. Does anyone have this file in their scripts? Edited November 2, 2018 by fluffyrandomeow Link to comment Share on other sites More sharing options...
fluffyrandomeow Posted November 2, 2018 Author Share Posted November 2, 2018 Solved: It turns out that I was unknowingly browsing the Fallout4 wiki which added the ScriptObjects script which allows for creating customevents and the like. Since Skyrim does have inter-script communication, I can still do this, but I will have to make my own ScriptObjects script. tldr; customevent is a feature added for Fallout4 and I have to make it for Skyrim. Link to comment Share on other sites More sharing options...
scrivener07 Posted November 3, 2018 Share Posted November 3, 2018 If you use the SKSE scripting library then custom events with parameters are possible. https://www.creationkit.com/index.php?title=ModEvent_ScriptSKSE is for PC only so its usefulness depends on your project requirements. Link to comment Share on other sites More sharing options...
scrivener07 Posted November 3, 2018 Share Posted November 3, 2018 Also, `var` is not a valid type in Skyrim. Thats a Fallout 4 language addition. Link to comment Share on other sites More sharing options...
fluffyrandomeow Posted November 5, 2018 Author Share Posted November 5, 2018 Ah thank you. Using that seems a lot easier than having to make it on my own. Link to comment Share on other sites More sharing options...
Recommended Posts