You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also there is a BUG in these components related to props.
For example:
localtpp=player:FindComponentByName(CName.new("TPPRepresentation"))
print(tpp.detachedObjectInfo[1].itemTDBID) -- prints "Items.PlayerFppHead" CNametpp.detachedObjectInfo[1].itemTDBID=TweakDBID.new("Items.PlayerWaTppHead")
print(tpp.detachedObjectInfo[1].itemTDBID) -- Still prints "Items.PlayerFppHead" CName
WORKAROUND FOR NOW:
localtpp=player:FindComponentByName(CName.new("TPPRepresentation"))
localobj=NewObject('gameFppRepDetachedObjectInfo')
obj.slotID=TweakDBID.new("TppHead")
obj.itemTDBID=TweakDBID.new("Items.PlayerWaTppHead")
tpp.detachedObjectInfo= {obj}
print(tpp.detachedObjectInfo[1].itemTDBID) -- now prints "Items.PlayerWaTppHead" CName
The text was updated successfully, but these errors were encountered:
This has to do with the fact that we copy by value arrays in ToLua, it's a broader project where we need to wrap internal arrays instead of converting to Lua arrays
Reported by @striderxfossility inside #497
Also there is a
BUG
in these components related to props.For example:
WORKAROUND FOR NOW:
The text was updated successfully, but these errors were encountered: