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 verify its state as the conditional value instead of using a local boolean variable.
If LightBulbRef.IsDisabled() ;enabling an already enabled light disables it, thus we evaluate its state as the conditional value instead of using a local boolean variable.
LightBulbRef.Enable() ;if you provide a parameter it will never get enabled.
LightBulbRef.Enable() ;if you provide a parameter it will never get enabled.
Else
Else
Anonymous user

Navigation menu