11-13-2015, 09:43 AM
Okay so I was doing some quick prototyping to prepare for future updates for Home Unlimited (I'm still busy with school, but I was taking a break awaiting some post replies for my other assignments, was busy chewing on some food so I wasn't asleep yet).
Anyways, I figure I can probably randomly spawn a marker somewhere, use that to find nearestBuilding, then BIS_fnc_buildingPositions and I can spawn players in any random building without manual slave labor of selecting every single building and placing an object. The problem is, once I pick that object and spawn players there, everyone will be stacked on top of each other.
I'm wondering how do I take into account for that and spawn players near each other without stacking.
Anyways, I figure I can probably randomly spawn a marker somewhere, use that to find nearestBuilding, then BIS_fnc_buildingPositions and I can spawn players in any random building without manual slave labor of selecting every single building and placing an object. The problem is, once I pick that object and spawn players there, everyone will be stacked on top of each other.
I'm wondering how do I take into account for that and spawn players near each other without stacking.