bmb Posted July 29, 2010 Share Posted July 29, 2010 If I want a radius of 400 with my coordinates being the center of the radius, would my code be this: 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 400.0 400.0 400.0 or this: 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 800.0 800.0 800.0 Link to comment Share on other sites More sharing options...
BnB Posted July 29, 2010 Share Posted July 29, 2010 (edited) The center will be the same If you want radius 400 then use the first 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 400.0 400.0 400.0 0.0 0.0 100.0 is the center @james227uk you can't find the center of radius (in the SAN ANDREAS map) using the radius Edited July 30, 2010 by BnB Link to comment Share on other sites More sharing options...
Adler Posted July 29, 2010 Share Posted July 29, 2010 If you want your coords to be in the center of the radius then it really isn't a radius anymore. I think this would suit what you're talking about. 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 200.0 200.0 200.0 Link to comment Share on other sites More sharing options...
james227uk Posted July 29, 2010 Share Posted July 29, 2010 (edited) The center will be the same If you want radius 400 then use the first 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 400.0 400.0 400.0 0.0 0.0 100.0 is the center I'm probably having a bad maths day, but wouldn't the centre be 200.0 200.0 200.0? 200.0 200.0 0.0 being the floor center Edited July 29, 2010 by james227uk Link to comment Share on other sites More sharing options...
ZAZ Posted July 29, 2010 Share Posted July 29, 2010 The center will be the same If you want radius 400 then use the first 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 0.0 0.0 100.0 radius 400.0 400.0 400.0 0.0 0.0 100.0 is the center I'm probably having a bad maths day, but wouldn't the centre be 200.0 200.0 200.0? 200.0 200.0 0.0 being the floor center he meant the absolute coords and no, 200.0 would be the half of the radius diameter is 800.0 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
james227uk Posted July 29, 2010 Share Posted July 29, 2010 And so it is. I said I was having a bad maths day Link to comment Share on other sites More sharing options...
bmb Posted July 30, 2010 Author Share Posted July 30, 2010 (edited) Ok, now I'm confused. so I will explain a little better. I was using the GTA SA Control Center to try to figure out my coordinates on the game map. I found this to be very helpful since it will tell you the coordinates you select on the map and you can increase or decrease the "X" and "Y" and press show on map to get an idea of how big you want to make your sphere. Just using 0.0 because its easy I made "X" -400.0 and +400.0 and "Y" was also -400.0 and +400.0 which would make a sphere 800.0 around 0.0 . I didn't know if the code would use 400.0 to make the sphere 800.0 with a radius of 400.0 or you had to enter in the whole sphere size to get the coordinates in the center. I think the first answer by BnB is what I was looking for. Edited July 30, 2010 by bmb Link to comment Share on other sites More sharing options...
Adler Posted July 30, 2010 Share Posted July 30, 2010 The opcode would use 400.0 for the radius if you wanted the sphere to have a diameter of 800.0. Link to comment Share on other sites More sharing options...
bmb Posted July 30, 2010 Author Share Posted July 30, 2010 Got it. Thanks to all who replied. Link to comment Share on other sites More sharing options...
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