SKKmods Posted July 8, 2018 Share Posted July 8, 2018 I am not sure if this is even possible, let me know if a remote script function can be called via GetFormFromFile. This direct object.script function call works fine: DLC04:DLC04_MonorailScript Property pDLC04_MonorailScript Auto Const Mandatory pDLC04_MonorailScript.PowerUpMonorail() This indirect call does not, possibly because the compiler can't resolve the function over a lazy load (" PowerUpMonorail is not a function or does not exist"): ObjectReference ThisREF = Game.GetFormFromFile(0x00009a3b, "DLCNukaWorld.esm") as ObjectReference ;DLC04_MonorailNukaWorld ScriptObject RemoteScript = ThisREF.CastAs("DLC04:DLC04_MonorailScript") RemoteScript.PowerUpMonorail() Link to comment Share on other sites More sharing options...
Reneer Posted July 8, 2018 Share Posted July 8, 2018 (edited) It's definitely possible. Instead of calling the function directly, you will want to use CallFunction or CallFunctionNoWait. Obviously you will also want to check to see that the CastAs call succeeded beforehand. Edited July 8, 2018 by Reneer Link to comment Share on other sites More sharing options...
SKKmods Posted July 8, 2018 Author Share Posted July 8, 2018 Lovely, thanks RemoteScript.CallFunction("PowerUpMonorail", New Var[0]) Link to comment Share on other sites More sharing options...
Recommended Posts