Difference between revisions of "Talk:Enable - ObjectReference"

Jump to navigation Jump to search
m
imported>HawkFest
imported>HawkFest
Line 52: Line 52:
Event OnHit(ObjectReference Aggressor, Form Source, Projectile AkProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
Event OnHit(ObjectReference Aggressor, Form Source, Projectile AkProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
If Aggressor == Game.GetPlayer()
If Aggressor == Game.GetPlayer()
If LightBulbRef.IsDisabled() ;enabling an already enabled light disables it, thus we evaluate its state as the conditional value instead of toggling a local boolean variable.
If LightBulbRef.IsDisabled() ;enabling an already enabled light disables it, thus we evaluate its state as the conditional branching instead of toggling a boolean script variable.
LightBulbRef.Enable() ;if you provide a parameter it will never get enabled.
LightBulbRef.Enable() ;if you put a fade parameter in-between parenthesis it will never get enabled.
Else
Else
LightBulbRef.Disable()
LightBulbRef.Disable()
Anonymous user

Navigation menu