twistedtrebla Posted March 10, 2018 Posted March 10, 2018 I am trying to create a mod that fires off of four play's animation end event. This is my first mod that's trying to hook up with FP's events, so any help would be appreciated. When trying to compile my script, I'm getting the following compile error: unknown namespace four_play:loaderbase Any idea what I'm doing wrong? I'm just trying to start a simple script to run: Scriptname FP_Test_Main extends ReferenceAlias import Debug import Actor Actor property Player auto ScriptObject four_play_script four_play:Main four_play_event Event OnInit() StartTimer(3, 0) EndEvent Event onTimer(int aiTimerID) If aiTimerID == 0 Load() Endif EndEvent Function Load() Quest Main = Game.GetFormFromFile(0x00002679, "four_play.esp") as quest four_play_script = Main.CastAs("four_play:Main") If !four_play_script Debug.notification("Four-Play Framework not found..") utility.wait(0.1) Else Debug.notification("Four play found. Registering for events") four_play_event = Main as four_play:Main RegisterForCustomEvent(four_play_event, "animation_over") Endif EndFunction Event four_play:Main.animation_over(four_play:Main akSender, Var[] akArgs) Debug.notification("You just had sex") EndEvent
Recommended Posts
Archived
This topic is now archived and is closed to further replies.