Describe the bug:
Using ProjectPositionToWidget does not work and i could not find anyone who used it succesfully.
I assume that just the documentation in the API is unclear.
How do you cause this bug?
- List the steps
I add this script to a user:
function Test:LocalOnTick()
print(self:GetEntity():ProjectPositionToWidget(self:GetEntity().widget,Vector.New(0,0,0)))
end
and also attach a widget called “widget” to the user.
output:
[Client] [Error] test:11: stack index 2, expected userdata, received sol.UPZWidgetEntityComponent*: value at this index does not properly reflect the desired type (bad argument into 'sol::basic_object<sol::basic_reference<0> >(PZLuaEntityOverride<UPZUser,APZEmptyActor>&, APZWidget&, FVector, sol::this_state)')
stack traceback:
[C]: in function 'ProjectPositionToWidget'
test:11: in function <test:10>
Screenshots / video of bug:
Which platform: PC
Which input: keyboard + mouse
Your Crayta username: Daigoro
How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible):
100%
Version number (found in Help tab in Settings): 0.f3.5.122296