edit dynamic object error
#1

i have an attached object to an vehicle, how i can to modify the position? please give me an example ?

when i try to edit: https://www.youtube.com/watch?v=zw81...ature=*********

how i can do like this: https://www.youtube.com/watch?v=NbmJdDJ_JYU
Reply
#2

bump, help please
Reply
#3

bump
Reply
#4

bumb, help someone
Reply
#5

bump
Reply
#6

There are no examples, show what you've got and what functions/callbacks you are using to do this.
Reply
#7

You can taste this topic:

https://sampforum.blast.hk/showthread.php?tid=589152

Hope it help you , and you press reputation...
Reply
#8

Noone is going to help you unless you do not provide the TEXT of ERROR and everything, no-one is going to help you LIKE THIS.
Reply
#9

this is my script with object:https://pastebin.com/xAZdt5sN

and when i try to edit, it's not moving
Reply
#10

It's a Dynamic object, therefore you need to use the Dynamic functions.

INCORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetObjectPos(objectid, x, y, z);
    SetObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}
CORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetDynamicObjectPos(objectid, x, y, z);
    SetDynamicObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)