VTIRadialTripObjectToggle

From WaffleSlapper's Project Wiki


VTIRadialTripObjectToggle is a VTI Driver that operates similarly to VTIObjectToggle. However, Firing this Driver will set it to be "Armed" and wait until a Player enters a given Radius to trigger.

Useful for jumpscares.

Driver Capabilities
Supports User Messaging Yes - Uses two TextMeshPro objects for Username and Message Inputs
Supports Dynamic Rebinding Yes - Appends Trigger Verb to UserName String
Network Sync Triggers on all Clients, does not sync to new joiners
Inputs
Name Type Usage
Target GameObject The GameObject to toggle on/off when Firing.
UserNameText TextMeshPro The TMP object to populate with UserName and Verb text.
MessageText TextMeshPro The TMP object to populate with User Message text.
ResetTime float How long to keep Target enabled for before disabling.
OnlyPOVTrigger bool When enabled, only the Streamer's client can trip the radius check. Else, any Player can trip.
CheckRadius float The distance (in meters) a Player has to be within before this Driver "Detonates".
CheckRate float How long (in seconds) to wait between checking for nearby Players. Lower numbers are more responsive and less likely to "miss" if players are moving at speed; higher numbers are more performant.