Difference between revisions of "Talk:Enable - ObjectReference"

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 branching instead of toggling a boolean script 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 variable.
LightBulbRef.Enable() ;if you put a fade parameter in-between parenthesis it will never get enabled.
LightBulbRef.Enable() ;if you put a fade parameter in-between parenthesis it will never get enabled.
Else
Else
Anonymous user