The player assigns a new key on Key press for itself.
I’m line tracing to each target within range for calculating grapple features, but I would like to somehow pull the “assigned key” from available targets and use that key to grapple to it.
I’m unsure how to pull this “key variable” from multiple targets on screen.
@Supremative I know this is probably extremely easy but I’m scratching my brain on remembering how to do this part I circled in red. In an earlier image you referenced a “KEYS” and “Local Key” variable. This one only says “Key”, is this a new variable? I’m unsure hot to connect it in a way that shows “Target----Key”
Perhaps you should give the variables more specific names to avoid confusion.
For example,
KEYS - AvailableKeys
function GetKey - GetRandomKey
Key - AccessKey
When we originally spoke about this, the 2nd screenshot contained a suggestion of how to do it:
Not sure if you missed it or simply did not like the approach; if it’s the latter, ignore what follows.
I’m line tracing to each target within range for calculating grapple features
That’s the problem, you’d first need references to those and then filter for range. Consider implementing the method I mentioned. Using the GetAll nodes for this is too cumbersome and can become slow if you need the updates often and / or there are plenty of objects.
You will, ofc, need the dot product to get the direction-valid ones.