mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Added interactRange, resolves #191
This commit is contained in:
parent
7ecd664646
commit
2d68d51159
@ -65,6 +65,8 @@ namespace NewHorizons.Builder.Props
|
||||
var owCollider = conversationZone.AddComponent<OWCollider>();
|
||||
var interact = conversationZone.AddComponent<InteractReceiver>();
|
||||
|
||||
interact._interactRange = info.interactRange;
|
||||
|
||||
if (info.radius <= 0)
|
||||
{
|
||||
sphere.enabled = false;
|
||||
|
||||
5
NewHorizons/External/Modules/PropModule.cs
vendored
5
NewHorizons/External/Modules/PropModule.cs
vendored
@ -332,6 +332,11 @@ namespace NewHorizons.External.Modules
|
||||
/// </summary>
|
||||
public MVector3 remoteTriggerPosition;
|
||||
|
||||
/// <summary>
|
||||
/// Distance from radius the prompt appears
|
||||
/// </summary>
|
||||
[DefaultValue(2f)] public float interactRange = 2f;
|
||||
|
||||
/// <summary>
|
||||
/// The radius of the remote trigger volume.
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user