Soul Tear on 26/11/2025 at 18:03
I need to create a trigger based on the player's gaze. When the player looks at a marker for a few seconds, the marker should send a TurnOn to a door.
Is this possible?
RippedPhreak on 26/11/2025 at 20:14
TrigWorldFocus sends TurnOn when it's looked at, but it's instant reaction. Could put a few seconds' delay relay between the marker and the door. Also need to set the object's FrobInfo to World Action -> Script, FocusScript.
You said a "marker?" Usually markers are invisible. I don't think this will work in that case.
R Soul on 26/11/2025 at 20:34
Yes, you can use the scripts TrigWorldFocus and TrapTimedRelay.
Marker:
The marker has to be rendered (i.e. property Render Type: Normal), but you can then use the Transparency property to make it invisible to the player.
TrigWorldFocus script
FrobInfo property: WorldAction: FocusScript
Timer:
TrapTimedRelayScript
Script Timing property: number of milliseconds
If the door is to open, but not to close after the same delay when looking away:
RelayTrap
Script Timing property, either of these values:
Once = the door will open but will not close automatically, but nor will it open again if some other event closes it. The player could get stuck.
NoOff = the door will not close automatically, but can be opened an infinite number of times.
Links all ControlDevice:
Marker -> Timer -> RelayTrap -> Door
Or bypass the marker for auto-closing and repeating of the effect.
Also remember that the door can also have the Script Timing property, so it could auto-close after a different delay to the gaze-open effect.
Soul Tear on 1/12/2025 at 18:08
RippedPhreak, R Soul
Thanks, it works! That's great, I see some really interesting possibilities. With this thing in the holster, I can force the player to explore readables instead of spamming every object with the mouse.