Based on the search results, I can provide a conclusive answer regarding part of your question, but not the entire question.
Yes, you can expose a player's position in Verse as a 3D vector in UEFN. There are several methods to achieve this:
- You can get the player's position using transform and translation methods. The player position can be obtained through code like this:
FortniteCharacter := PlayerList.GetFortCharacter[]
PlayerPosition := FortniteCharacter.GetTransform().Translation
This provides the player's position as a Vector3 (x, y, z coordinates)[5].
- For tracking specific players, you can get a reference to the player who triggered an event:
if (NPCChar := NPCAgent.GetFortCharacter[],
NewTarget := BehaviorHelp.FindNearestTargetFromPos[NPCChar]):
TargetPosition := NewTarget.GetTransform().Translation
This allows you to track the position of the nearest player to your NPC[8].
- When working with player positions, you can create a Vector3 by extracting the components:
PlayerPosition := vector3{
X := FortniteCharacter.GetTransform().Translation.X,
Y := FortniteCharacter.GetTransform().Translation.Y,
Z := FortniteCharacter.GetTransform().Translation.Z
}
This gives you full control over the vector components[3][4].
However, regarding the second part of your question - whether this position can be captured and made available inside of the control rig blueprint specifically in UEFN - the search results don't provide conclusive information about this integration between Verse and Control Rig in UEFN.
While search result [6] discusses Control Rig Blueprints, it doesn't specifically address how to pass position data from Verse to Control Rig in the UEFN environment.