#Network transform cannot be moved by Client.

12 messages · Page 1 of 1 (latest)

vague mountain
#

I have a game object. Specifically, a shovel. But that's irrelevant.

I gave it a Network Identity and Network Transform (Reliable).
But the client can't move the object?

What do I need to do so that the client can move it?
Sync Direction is set to Client to Server.

forest forge
#

Just note, if your trying to parent/child this networked item to another networked item, you may have a bad time.

#

And if so, see here: #🤝help-archive message

vague mountain
#

Oh.
Everything that the client is allowed to move directly must be authorized.
Now I've understood it.🤦‍♂️ 🙈

forest forge
# vague mountain Oh. Everything that the client is allowed to move directly must be authorized. N...

Yep, the alternative is to use sync var and hook on shovel, for a player network identity, and essentially have the Shovel assign transform to hand position if it has a sync var assigned, to avoid parent/childing. (and authority assigning code)
I cant find the example for this in the discord, but i know the #🥽vr demo has it, you can see its code without having to download or run it, via github.

vague mountain
vague mountain
#

Ahh OK.
That works.

Now I only have the problem that OnTriggerEnter is executed for everyone.
I want the trigger to be recognized locally and execute a ServerCommand.
I can't use isLocalPlayer because the script isn't attached to the player, right?

vague mountain
# forest forge isOwned?

I have authorized the client to use it.
Surely this is not isOwned?

I don't understand it 100% yet.

vague mountain
# forest forge isOwned?

Yes, it's owned.
But onTrigger does not rule.

Can the client execute that?
Or does OnTriggerEnter then have to trigger on the server side?