I'm sure there was a thread about this somewhere but after 20 minutes of searching I can't seem to find it. Basically I've been messing around with some code to harvest and have run into a problem checking if the resouce is already owned or being harvested by another player. I've tried to search the wiki for ways of doing this and what I have come up with is using one of the following :-
Me.Target.OwnedByMe, Me.Target.IsHarvestable or Me.Target.Owner
But testing these out I get the following results :-
If the resouce is targeted by me and no one else I get OwnedByMe = FALSE Owner =NULL Harvestable = FALSE
If the resource is harvested by another player :- OwnedByMe = FALSE, Owner = NULL, Harvestable = FALSE
I'm guessing I'm using the wrong checks or that I've missed something here. If someone could point me to the right thread or wiki enty Id be most happy
Me.Target.OwnedByMe, Me.Target.IsHarvestable or Me.Target.Owner
But testing these out I get the following results :-
If the resouce is targeted by me and no one else I get OwnedByMe = FALSE Owner =NULL Harvestable = FALSE
If the resource is harvested by another player :- OwnedByMe = FALSE, Owner = NULL, Harvestable = FALSE
I'm guessing I'm using the wrong checks or that I've missed something here. If someone could point me to the right thread or wiki enty Id be most happy