Object is changing virtual world on its own
#1

When I create a new Dynamic Object and want to edit it via CreateDynamicObject, it just keeps setting it's own virtual world on 0, and I can't see it anymore. Here's the code.
pawn Код:
new Float:pPos[4];
   GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
   GetPlayerFacingAngle(playerid, pPos[3]);
   EventObject[playerid] = CreateDynamicObject(modelid, pPos[0]+(20.0 * floatsin(-pPos[3], degrees)), pPos[1]+(20.0 * floatcos(-pPos[3], degrees)), pPos[2], 90.0000, 0.0000, 0.0000, 1, -1, -1, 300.0);
   EditDynamicObject(playerid, EventObject[playerid]);
Reply


Messages In This Thread
Object is changing virtual world on its own - by SpaMaster - 18.01.2016, 21:32
Re: Object is changing virtual world on its own - by valych - 18.01.2016, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)