Summary
I’ve been working with the new carryable_spawner_device in Verse, and I want to use Verse code to track the live location of a carryable object after it has been thrown. after writing a loop script, I notice that it only reports the coordinates of the device, not the item.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
- Write the following code, with the belonging packages and editables (BeachBallBlue is the device):
ForCarryableThrown(Agent:agent):void=
spawn:
CarryableThrown(Agent)
CarryableThrown(Agent:agent):void=
loop:
Sleep(0.1)
if (BallTransform := BeachBallBlue.CarryableObjectTransform?, BallLocation := BallTransform.Translation):
Print(“{BallTransform.Translation.X}”)
- Enter a session and start the game
- Pick up the carryable item, move your character somewhere and throw the item
- Check if the output log reports the X-coordinate of the stationary device or of the actual item
Expected Result
The X-coordinate of the item would be printed, showing different values each time as the item travels.
Observed Result
The same value is printed each time, which is in fact the X-coordinate of the carryable item device.
Platform(s)
PC
Additional Notes
Fortnite.digest says the following about CarryableObjectTransform:
The carryable transform, if the carryable exists in-world.
var<private> CarryableObjectTransform<public>:?(/UnrealEngine.com/Temporary/SpatialMath:)transform = external {}