This commit is contained in:
Nick 2022-06-19 17:02:20 -04:00
commit 6ca256b138
4 changed files with 17 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -895,6 +895,12 @@
"description": "Allows you to trigger dialogue from a distance when you walk into an area.",
"$ref": "#/definitions/MVector3"
},
"range": {
"type": "number",
"description": "Distance from radius the prompt appears",
"format": "float",
"default": 2.0
},
"remoteTriggerRadius": {
"type": "number",
"description": "The radius of the remote trigger volume.",