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, thus we evaluate its state as the conditional | 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 | LightBulbRef.Enable() ;if you put a fade parameter in-between parenthesis it will never get enabled. | ||
Else | Else | ||
LightBulbRef.Disable() | LightBulbRef.Disable() |