Difference between revisions of "Talk:Enable - ObjectReference"
m
→Parentheses Must Be Left Blank
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 | If LightBulbRef.IsDisabled() ;enabling an already enabled light disables it. | ||
LightBulbRef.Enable() | LightBulbRef.Enable() ;if you provide a parameter it will never get enabled. | ||
Else | Else | ||
LightBulbRef.Disable() | LightBulbRef.Disable() |