yMassai Posted May 14, 2012 Share Posted May 14, 2012 how I could create a script on the spawning of players in three hospitals and when the player is dead, is spawned in the closest hospital. Link to comment
Jaysds1 Posted May 14, 2012 Share Posted May 14, 2012 You could try creating a colshape at the hospital then use isElementWithinColShape(player,thecolshape) Link to comment
Michael# Posted May 14, 2012 Share Posted May 14, 2012 Check distances between player and hospitals. Link to comment
Jaysds1 Posted May 14, 2012 Share Posted May 14, 2012 you could use these: getDistanceBetweenPoints2D() --or getDistanceBetweenPoints3D() Link to comment
Stanley Sathler Posted May 14, 2012 Share Posted May 14, 2012 You can use a little shit, creating three variables (storing the coordinates of them) and getting the actual player position. So, you create some conditions to choice the more near coordinates. But it is a little hard x] So, maybe you can use as Jaysds said, using getDistanceBetweenPosition2D (or getDistanceBetweenPoints3D) (obs: I never tried use these functions) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now