Hmmm
Then the only thing you can do is saving the Entity's location under the player's ID on building, and then later checking if he owns it by the location.
Try something shitty like this.
def GetPlayer(self, namee):
name = namee.lower()
for pl in Server.ActivePlayers:
Server.Broadcast("Name that we found: " + str(pl.Name.lower()))
if pl.Name.lower() == name:
return pl
return None...
I saw a post that buildings no longer contain data about their owners, but the thing you are using seems to be correct.
How about trying BuildingPart.OwnerID instead of name?
I hope Jakkee won't kill me, but something like this should work:
__title__ = 'Homes'
__author__ = 'JAKKEE'
__version__ = '1.0'
import clr
from System import *
clr.AddReferenceByPartialName("UnityEngine")
clr.AddReferenceByPartialName("Pluton")
import UnityEngine
from UnityEngine import *...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.