18.01.2016, 21:32
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]);