SuperSkunk Posted January 5, 2011 Posted January 5, 2011 Where can I find out the height width and depth? I use Admin panel to find out the positions x,y,z but where can I find out the height width and depth? Thanks in advance:)
WallMart Posted January 5, 2011 Posted January 5, 2011 well you just answered yourself i guess? how else were you thinking of getting the coords... maybe press F3 while selecting an item? Just.... just skip this..
SuperSkunk Posted January 5, 2011 Author Posted January 5, 2011 I didn't answer myself. I know how to find xyz but I need help finding the H/W/D because I can't see it on the admin panel, I'm trying to place a green zone on area 51 and its asking me to put in the coords which I'm doing but I can't seem to find the h/w/d. safecol = createColCuboid ( -213.8536529541, 1875.0391845703, 13.14695930481, 100, 0, 100 ) safeZoneRadar = createRadarArea ( -213.8536529541, 1875.0391845703, 200, 150, 0, 255, 0, 120 )
SDK Posted January 5, 2011 Posted January 5, 2011 createColCuboid This function creates a collision cuboid. This is a shape that has a position, width, depth and height. See Wikipedia for a definition of a cuboid. The XYZ of the col starts at the southwest bottom corner of the shape. So you fill in the southwest bottom corner as fx, fy and fz. And the width, depth and heigth would be fx1, fy1, fz1 = --southwest bottom corner coordinates fx2, fy2, fz2 = --north east upper corner coordinates width = fx2 - fx1 depth= fy2 - fy1 heigth = fz2 - fz1 I would use "createColRectangle" btw, no need for a z-coordinate Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
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