Cage problem (createdynamicobject creating only 3 objects)
#1

Код:
CMD:protect(playerid,params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 0.14000);
CreateDynamicObject(19870, x, y, z,   91.00000, 0.00000, 0.00000);
CreateDynamicObject(19870, x, y, z,   90.08000, 0.00000, 0.00000);
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 91.00000);
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 90.14000);



return 1;
}
It's creating only 3 of them like wtf..? whats wrong I just want to create a simple cage on command.
Reply
#2

Код:
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 0.00000); 
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 0.14000); 
CreateDynamicObject(19870, x, y, z,   91.00000, 0.00000, 0.00000);
CreateDynamicObject(19870, x, y, z,   90.08000, 0.00000, 0.00000);
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 91.00000); 
CreateDynamicObject(19870, x, y, z,   0.00000, 0.00000, 90.14000);
I Think 6 Objects are made but it looks like only 3 cause the others are almost in the same position
So you gonna see 1 while its 3/4 at the same position
Reply
#3

You need to place the objects on coordinates around your position. Right now you're just creating a flower of objects at the same positions, but with different angles.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)