Typescript, transfer ownership not working.
Hello smart people, the Desktop editor's AI tool, GPT and i have spent 5 days on this and we can't seem to get this working. Long story short, i have a 'local' weapon script that works flawlessly with vfx, sfx, projectile gizmo, events to Hud etc when used by player 1. However, the moment player 2, they cannot fire the weapon.
I've added tons of debugging logs and the concensus is proper ownership transfer. However, the weapon entity, the individual connected entities etc are all in the transfer ownership section of the script.
Desktop editor's AI, GPT and i are stumped.
I know you're probably going to want to see an example script and try to make suggestions but to be honest, ive tried so many iterations, even copying 'Chop 'n' Pop' version, watching limited tutorials on this subject , etc and still not working for player 2.
Id be happy to clone the world and have someone connect to it and try, see whats going on. Might be the best way to figure it out.
id be happy to post results here afterwards.
Like i said, AI in desktop editor hadn't been able to figure it out. It had me going in circles on day 3. :)
You can reply here or ping me in Worlds for a deeper discussion.
i appreciate ya
BB
As a summary to the overall issue i had, yes GauRoth came and updated a few things that appear to have worked in our testing but it wasn't so much of an ownership issue than it was a lack of ammo for the player during our testing.
However, the issue i had experienced continued when testing between myself (Creator of the world) and a World tester. The tester still was not able to fire. I had continued down the path of ownership based on the console logs but remembered GauRoth saying that the ownership was fine (sharing the weapon between he and I worked - 2 world creators).
Then it hit me... a few months ago, there was an update that did not allow testerd to fire their weapon in Test environments (Sandboxes). So i went ahead and privetly published the world and sure enough, ithe weapon fired for the Tester and other guests that i invited. So GausRoth was right when he said, it wasnt an ownership issue.