CreateDynamicCube ? -
Bondage - 12.01.2015
Is there an existing function called CreateDynamicCube ?
If so how to get the minX, minY, minZ and maxX, maxY, maxZ (i've got no idea about this to get the coords)
Re: CreateDynamicCube ? -
Baboon - 12.01.2015
You can just create this yourself I suppose.
Just create a dynamic area, safe the id with an enum/variables linked with min/maxZ.
And create a stock.
Re: CreateDynamicCube ? -
Schneider - 12.01.2015
Streamer has all kinds of shapes :
pawn Код:
native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCylinder(Float:x, Float:y, Float:minz, Float:maxz, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCuboid(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
Re: CreateDynamicCube ? -
Bondage - 12.01.2015
I'm just asking this
pawn Код:
Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz
How do i get this coords, i know going in game and using the /save cmd gets the coords but in this there i have to provide 2 pos coords. I'm not getting the logic of that, what are these 2 coords
Re: CreateDynamicCube ? -
Ahmad45123 - 12.01.2015
Quote:
Originally Posted by Bondage
I'm just asking this
pawn Код:
Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz
How do i get this coords, i know going in game and using the /save cmd gets the coords but in this there i have to provide 2 pos coords. I'm not getting the logic of that, what are these 2 coords
|
I never used it before, But I guess the minx,miny,minz are the bottom corner of the cube and the max coords are the above corner. (Should be in the another side of the bottom to create a cube).