Sending spaw points with RPC

Hey,

In my game I have several spawn points and they are categorized by their locations by storing them some GameObject[] arrays. I want to call spawn functions on master client so they are just spawn once and random factor will be same for all. But the problem I am storing spawn points (they are gameobjects in the map) on arrays and I have 2 array for each location and I know I can't send gameobjects with RPC. Normally spawn funciton has GameObject[] parameter so I can spawn object on spawn points.

I don't want to add photonview on each spawn points ( there are lot of spawn points) and finding them by their photonid and sending that id as a paramater. This is very unefficient. Any ideas what to do?

Comments

  • Also they can not be child to same object because they need to child of different objects so I can't parent them and add photon view to that parent.