I have an event set to destroy an object on the layout if not the host.
My problem is, the game never thinks I am the host.
I dont know if others have had this issue before or not. but I am stuck here.
As the code is, the player gets destroyed when this should not be happening.
You are calling the multiplayer.host check before multiplayer can connect.
So even before it can join the room, its realising its not the host because its not connected, so it destroys the player.
You need to have,
on.multiplayer.joined.room
is host : Associate player with multiplayer.peerid
Else
<invert>is host</invert> player.destroy
Hope this helps,
Tom