updating object scale and offsets in attached objects
#7

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
Wait what? Are you using AttachObjectToPlayer or SetPlayerAttachedObject?

Which function you use to edit? EditPlayerObject or EditAttachedObject?

I doubt so, because people would use SetPlayerAttachedObject + EditAttachedObject for glasses, as these attach on player's skin bone, and is not solid.


But this is common that people mistaken the usage between Player Object functions and Player Attached Object, just like NaS, he mentioned the callback for EditPlayerObject, since you are mentioning MoveAttachedObject (what is that?) which is different thing.


Why do you use GetPVarInt to find out which object is being edited? The index variable from the callback already tells you which slot was being edited with EditAttachedObject?


So can you post a code where you create the glasses and the command to edit it?


EDIT: So i'm expecting you would do it by using SetPlayerAttachedObject, using EditAttachedObject, then OnPlayerEditAttachedObject with response = 1 you just return 1; after you store it to database.
I forgot the word "Attached", just a typo. Obviously he is using SetPlayerAttachedObject, otherwise OnPlayerEditAttachedObject wouldn't be called (which is the case since the values in the DB were updated).

But you probably gave away the proper fix. Returning 1.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)