Getting player/NPC from VendingMachine?Solved
I get all VendingMachines in game.

VendingMachine[] allVM = UnityEngine.Object.FindObjectsOfType<VendingMachine>();

But I need get it is NPS or User..
How can I get it NPS or User Mahine ?

foreach (VendingMachine vm in allVM)
{
    bool IsNPS = GetIsNPC(vm);
}

I need GetIsNPC method...

private bool GetIsNPC(VendingMachine vm)
{
    .......
}


Thanks in advance to the help.
You can just check OwnerID of machine, for server it will be 0
:) you ar wery fast.
TY for help :)
You are welcome
Locked automatically