Triggering the screens
Triggering a Blood Screen from Your Scripts
Activating a blood screen effect from your own scripts is straightforward and highly modular. First, retrieve a reference to the BSP_Manager
component in your script:
Once you have the reference, you can trigger the screen effect using the following methods:
ShowEffect()
Triggers a screen effect with optional flash.
StartEffectCycle()
Begins continuous effect cycles (e.g., low health).
StopEffectCycle()
Ends continuous effect cycles.
ActivateFlash(float alpha)
Manually activates flash overlay.
DeactivateFlash()
Manually deactivates flash overlay.
This allows you to integrate BSP seamlessly into your gameplay logic—whether you're responding to damage, environmental hazards, or any custom event.
💡 Tip: You can easily integrate this logic into your existing game scripts for full control over visual feedback based on gameplay events.
Last updated