Jump to content

Script Newbie! Need some help creating a script


jarno5

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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