EditObject
#1

The object should be created like this :
pawn Код:
new object = CreateObject(...);
EditObject(playerid, object);
to be edited, or it could be created like this :
pawn Код:
CreateObject(...);
EditObject(playerid, other variable here which is the objectid);
?

because I tried that and it won't work...
Reply
#2

1st option. Are you sure program reaches the edit part of code. put printf("Debug"); under the editobject to check
Reply
#3

yeah , it reaches it, I've tried the debug
Reply
#4

Object is spawned/created? No warrnings no errors?
Reply
#5

Yeah , it is spawned, no warnings. The SetDynamicObjectPos does not works, too. Tried with IsValidDynamicObject.

pawn Код:
if(IsValidDynamicObject(id)) {
    print("Test0");
    SetDynamicObjectPos(id, Pos[0] + 1.5, Pos[1], Pos[2] - 0.5);
}
Streamer_UpdateEx(playerid, Pos[0], Pos[1], Pos[2], GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
print("Test1");
EditDynamicObject(playerid, id);
print("Test2");
The messages are showing up in the console.

Red_Dragon: I have the latest streamer plugin version.
Reply
#6

I think that the Dynamic Commands like MoveDynamicObject etc.. needs the latest streamer plugin, i think so
Reply
#7

I already have it.
Reply
#8

Are you using CreateDynamicObject?
Reply
#9

Yeah, of course.
Reply
#10

bump?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)