Hi, i know how to make selection system, like click to show if bush have 10 hp or not, but i don’t know how to make system where player can select objects that he owns only! any suggestions how to change client only selection to client to server and back???
1 Like
You can try to add attribute Owner
to Bush and set its value to player name that owns it and check it in script before selecting. Here its docs
1 Like
I would probably not use attributes as they can not hold objects.
Expand your system to add an ObjectValue child to every object which can be owned.
Set the Value of that ObjectValue to the player that owns the object (obviously) and in the selectionsystem, see if the ObjectValue and the client player match and only then execute the necessary code for selection.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.