-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added events for scope menu hold breath.
- Loading branch information
1 parent
d8db5d0
commit 6b2f3a4
Showing
4 changed files
with
232 additions
and
40 deletions.
There are no files selected for viewing
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ScriptName Fallout:Scopes:Breath extends ActiveMagicEffect | ||
import Fallout:Scopes:Menu | ||
|
||
; Events | ||
;--------------------------------------------- | ||
|
||
Event OnEffectStart(Actor akTarget, Actor akCaster) | ||
If (ScopeMenu.IsOpen && ScopeMenu.IsBreathKeyDown) | ||
BreathEventArgs e = new BreathEventArgs | ||
e.Breath = ScopeMenu.BreathInterrupted | ||
ScopeMenu.SendBreathEvent(e) | ||
EndIf | ||
EndEvent | ||
|
||
|
||
; Properties | ||
;--------------------------------------------- | ||
|
||
Group Properties | ||
Fallout:Scopes:Menu Property ScopeMenu Auto Const Mandatory | ||
EndGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 25 additions & 24 deletions
49
Data/Scripts/Source/FO4_Scopes/Fallout/ScopesTest/SampleScope.psc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters