Jump to content

Can't Get Quest Script to Consistently Fire


Joshlaryeth

Recommended Posts

Attach these scripts to MQ102, legit leaving the vault, ditched the custom quest angle, and I swear it works once in a while upon loading a save from a start outside vault. Then I start a few new games and they won't fire. It's driving me nuts, something that should be so straightforward and simple not working. So here's the two scripts. I've seen them work, especially when I first ditched the custom quest and attached them to MQ102 and loaded a game just walking into sanctuary hills. I'd be unbelievably grateful for any help. Properties Filled. I'm using a Skip the Vault Mod, can't imagine playtesting without one.

 

First Script:

Scriptname AAA_PlayerStuffScript extends Quest
;-- Properties --------------------------------------
ammo property AAA_AADPAmmo auto
weapon property AAA_AADPWeapon auto
Event OnInit()
Game.GetPlayer().AddItem(AAA_AADPAmmo, 1, true)
Game.GetPlayer().AddItem(AAA_AADPWeapon, 1, true)
endEvent
Second Script:
Scriptname AADAmmoScript extends Quest
Weapon Property AAA_AADPWeapon Auto
Ammo Property AAA_AADPAmmo Auto
Float Property UpdateSpeed = 0.5 Auto Hidden
Event OnInit()
RegisterForAnimationEvent(Game.GetPlayer(), "weaponFire")
Endevent
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
If Game.GetPlayer().IsEquipped(AAA_AADPWeapon) && (akSource == Game.GetPlayer() && asEventName == "weaponFire")
StartTimerGameTime(UpdateSpeed)
Endif
EndEvent
Event OnTimerGameTime(int aiTimerID)
Game.GetPlayer().AddItem(AAA_AADPAmmo, 1, true)
endEvent
Edited by Joshlaryeth
Link to comment
Share on other sites

  • Recently Browsing   0 members

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