Added interactRange, resolves #191

This commit is contained in:
Ben C 2022-06-19 16:48:24 -04:00
parent 7ecd664646
commit 2d68d51159
No known key found for this signature in database
GPG Key ID: 7F8F04504B670474
3 changed files with 11 additions and 4 deletions

View File

@ -65,6 +65,8 @@ namespace NewHorizons.Builder.Props
var owCollider = conversationZone.AddComponent<OWCollider>(); var owCollider = conversationZone.AddComponent<OWCollider>();
var interact = conversationZone.AddComponent<InteractReceiver>(); var interact = conversationZone.AddComponent<InteractReceiver>();
interact._interactRange = info.interactRange;
if (info.radius <= 0) if (info.radius <= 0)
{ {
sphere.enabled = false; sphere.enabled = false;

View File

@ -332,6 +332,11 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
public MVector3 remoteTriggerPosition; public MVector3 remoteTriggerPosition;
/// <summary>
/// Distance from radius the prompt appears
/// </summary>
[DefaultValue(2f)] public float interactRange = 2f;
/// <summary> /// <summary>
/// The radius of the remote trigger volume. /// The radius of the remote trigger volume.
/// </summary> /// </summary>

View File

@ -1,5 +1,5 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<OutputPath>$(AppData)\OuterWildsModManager\OWML\Mods\xen.NewHorizons</OutputPath> <OutputPath>$(AppData)\OuterWildsModManager\OWML\Mods\xen.NewHorizons</OutputPath>
</PropertyGroup> </PropertyGroup>
</Project> </Project>