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 owCollider = conversationZone.AddComponent<OWCollider>();
var interact = conversationZone.AddComponent<InteractReceiver>(); var interact = conversationZone.AddComponent<InteractReceiver>();
interact._interactRange = info.range;
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 range = 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>

View File

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