Skip to content

Instantly share code, notes, and snippets.

@mrowrpurr
Created September 29, 2021 02:49
Show Gist options
  • Save mrowrpurr/df61f14659e0be6fe8cb0b2185fa97e8 to your computer and use it in GitHub Desktop.
Save mrowrpurr/df61f14659e0be6fe8cb0b2185fa97e8 to your computer and use it in GitHub Desktop.
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