React to the obstruction changing
PCA 3D ADVENTURE STUDIO TUTORIAL EDITION / 0.86.4.9
CHANGE A RUNNING GAME
Use a camera event when your game needs to react, for example to log the instant a character disappears behind a pillar. The camera can handle ordinary collision and fading on its own.
Protected • closer actors Visibility • the wide composition
01. Choose a shot where the event is easy to see
In the Camera Safety Workshop use Visibility so the lens stays back. For a test in your own room pick a subject and a wall which both allow the shot’s visibility policy.
02. Listen for a transition
Use OnCameraObstructionChanged in the event setup described earlier in this guide. Filter for the camera you are testing. Log the obstruction state and the blocker IDs. Walk behind the wall, pause there and walk back.
03. Explain an empty blocker list
In mode both, lens protection runs first. It can move the lens clear before the visibility test sees a wall. Inspect the desired and final camera poses and the per-subject state before treating an empty list as an event failure.
Check your result A useful capture shows the transition into obstruction and the transition back out. Hold the character still between them so you can distinguish a change event from repeated samples.
Visual Scripting in Depth
