(One intermediate revision by one other user not shown)
Line 14:
Line 14:
{{Table ComponentFields
{{Table ComponentFields
|TriggersOnly|Bool| Whether to only allow triggers in this component's slot hiearchy to trigger the teleporter.
|TriggersOnly|Bool| Whether to only allow triggers in this component's slot hiearchy to trigger the teleporter.
|Exits|{{RootFieldType|SyncList`1|[[#Exit|Exit]]}}|TypeAdv1=true| A list of slot exits to send the user to, which include rotation and individualized data.
|Exits|{{RootFieldType|SyncList`1|[[#Exit|CharacterTeleporter.Exit]]}}|TypeAdv1=true| A list of slot exits to send the user to, which include rotation and individualized data.
|MinimumVelocity|Float| the minimum velocity the user has to be traveling to enter the teleporter.
|MinimumVelocity|Float| the minimum velocity the user has to be traveling to enter the teleporter.
|DirectionReference|Float3| Which way is looking forward for this teleporter.
|DirectionReference|Float3| Which way is looking forward for this teleporter.
|MaxDirectionAngle|Float| If the user's velocity direction has an angle greater than this compared to the <code>DirectionReference</code>, then don't teleport the user.
|MaxDirectionAngle|Float| If the user's velocity direction has an angle greater than this compared to the <code>DirectionReference</code>, then don't teleport the user.
|IgnoreParentUser|Bool| Whether to ignore the active user of this component when finding users that meet the criteria to go through the teleporter.
|IgnoreParentUser|Bool| Whether to ignore the active user of this component when finding users that meet the criteria to go through the teleporter.
|TeleportEntered|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv6=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is entered.
|TeleportEntered|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv6=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is entered. For example, [[Component:RandomAudioClipPlayer|RandomAudioClipPlayer]] and [[Component:RandomObjectSpawner|RandomObjectSpawner]] have sync delegates that can be used here.
|TeleportExited|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv7=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is exited anywhere.
|TeleportExited|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv7=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is exited anywhere. For example, [[Component:RandomAudioClipPlayer|RandomAudioClipPlayer]] and [[Component:RandomObjectSpawner|RandomObjectSpawner]] have sync delegates that can be used here.
}}
}}
Line 33:
Line 33:
|RandomExitPointGenerator|IPointGenerator| A generator for points the user should end up when exiting out of this exit. for example, teleporting users into a [[Component:CirclePointGenerator|circle area]] after they exit here. Only works if <code>RelativeExitPoint</code> is false.
|RandomExitPointGenerator|IPointGenerator| A generator for points the user should end up when exiting out of this exit. for example, teleporting users into a [[Component:CirclePointGenerator|circle area]] after they exit here. Only works if <code>RelativeExitPoint</code> is false.
|TeleportExitVelocity|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Float3|Float3]]>'''|TypeAdv7=true| What velocity to set the user to when they exit out of this exit.
|TeleportExitVelocity|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Float3|Float3]]>'''|TypeAdv7=true| What velocity to set the user to when they exit out of this exit.
|TeleportExited|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv8=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is exited here.
|TeleportExited|{{RootFieldType|SyncDelegateList`1|[[Type:Action`1|Action`1]]<[[Type:Float3|Float3]]>}}|TypeAdv8=true| [[Sync Delegate|Sync Delegates]] that take [[Type:Float3|Float3]] that should be called when the teleporter is exited here. For example, [[Component:RandomAudioClipPlayer|RandomAudioClipPlayer]] and [[Component:RandomObjectSpawner|RandomObjectSpawner]] have sync delegates that can be used here.
}}
}}
Latest revision as of 18:54, 5 April 2025
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Character Teleporter component as seen in the Scene Inspector
The CharacterTeleporter sets up a Slot to teleport a character to the associated teleport exit when the Slot's Collider is hit. The Collider must be of type Trigger unless TriggersOnly is disabled.
A generator for points the user should end up when exiting out of this exit. for example, teleporting users into a circle area after they exit here. Only works if RelativeExitPoint is false.
Place the component on a slot with a collider that has character collider field enabled. Next, specify slot(s) for the user to exit out of in the Exits list. Walking into the collider zone will send you and anyone else to the target Exit
Examples
Can be used in conjunction with a Camera Portal to make a gateway/portal. It can also be used to make a Tardis interior.
Teleport users using the CharacterTeleporter component by ProbablePrime.