Jump to content

Script Newbie! Need some help creating a script


jarno5
Go to solution Solved by HadToRegister,

Recommended Posts

Hi All!

 

I trying to create a script for 2 mods im using: AAF and Facelight.

Somehow with the newest update for Fallout itself facelight is not appearing during AAF animations.

So far i could narrow it down that facelight got messed up and would not apply when changing cells in 3rd person.

i was able to fix it by adding OnCellLoad to the existing reload script from the mod itsself.

 

now i need to make somthing simmular for AAF during an Event.

 

Script for fix 3rd person (working) :

Scriptname aaaFaceLightReload extends ReferenceAlias


aaaFaceLightAddScript Property aaaFaceLightAddQuest auto


;On load game
Event OnPlayerLoadGame()
Utility.Wait(2)
aaaFaceLightAddQuest.Register()
aaaFaceLightAddQuest.RegisterForDialogueMenu()
aaaFaceLightAddQuest.RefreshLightPC()
EndEvent


Event OnCellLoad()
aaaFaceLightAddQuest.Register()
aaaFaceLightAddQuest.RegisterForDialogueMenu()
aaaFaceLightAddQuest.RefreshLightPC()
EndEvent

Now for my work in progress as its far from done:



Scriptname AAF_Facelightreload extends quest


ScriptObject AAFQuest_Script


If Game.IsPluginInstalled("AAF.esm")
AAFQuest_Script = Game.GetFormFromFile(0x00000F99, "AAF.esm") as ScriptObject
EndIf




Event OnAnimationStart()
aaaFaceLightAddQuest.Register()
aaaFaceLightAddQuest.RegisterForDialogueMenu()
aaaFaceLightAddQuest.RefreshLightPC()
EndEvent

Could any code wizard assist me on this? as i have zero skill in this and managed to fix the first by copy past :laugh:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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