73. Combine a burst, sound and zoom blur
Figure 39. A held Zoom Blur makes its radial effect easy to inspect. Use a short timed pulse for ordinary gameplay.
extends PCAScriptBasefunc run() -> void:
await ChangeObjectProperty({"entityId":"blast",
"property":"particle.enabled","value":false})
await ChangeObjectProperty({"entityId":"blast",
"property":"particle.enabled","value":true})
await PlaySound({"assetId":"chime","channel":"impact"})
await ZoomBlur({"strength":0.3,"duration":0.6,
"centerX":0.5,"centerY":0.5,"clearRadius":0.12,
"includeGUI":false,"wait":false})This starts an authored explosion and a sound, then adds a 0.6-second radial pulse. Clear Center Radius keeps the focal region less blurred. Center X/Y are normalized coordinates: 0.5,0.5 is the center.
A positive Zoom Blur duration rises and falls, then clears. Duration 0 holds the effect until Stop Zoom Blur. A new blur replaces the old one. Keep Include GUI off initially so dialogue and inventory stay readable.
