Created
September 29, 2021 02:49
-
-
Save mrowrpurr/df61f14659e0be6fe8cb0b2185fa97e8 to your computer and use it in GitHub Desktop.
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
scriptName Apprentice_Test_Effect extends ActiveMagicEffect | |
float CurrentAlpha | |
event OnEffectStart(Actor target, Actor caster) | |
RegisterForUpdate(1.0) | |
CurrentAlpha = UI.GetFloat("HUD Menu", "_root.HUDMovieBaseInstance.CrosshairInstance._alpha") | |
UI.SetFloat("HUD Menu", "_root.HUDMovieBaseInstance.CrosshairInstance._alpha", 0.0) | |
endEvent | |
event OnEffectFinish(Actor target, Actor caster) | |
UnregisterForUpdate() | |
UI.SetFloat("HUD Menu", "_root.HUDMovieBaseInstance.CrosshairInstance._alpha", CurrentAlpha) | |
endEvent | |
event OnUpdate() | |
Debug.Notification("Attacking!") | |
Game.ShakeCamera(afStrength = 0.1) | |
Game.GetPlayer().SetActorValue("Stamina", 0.0) | |
endEvent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment