Send Object Message, but also back to user?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Send Object Message, but also back to user?

Postby meanvel » 22 Feb 2017, 10:14

Is it possible to send a object message also back to the same user?

Trying to also send this back to the same user, not just others in AOI... Variables are added to the object message serverside. Could I just set "Sender" to "null"? Oh wait, that wouldn't work, lol... Then it wouldn't know where the AOI location the object was coming from.

Code: Select all

mmoApi.sendObjectMessage(mapRoom, Sender, newParams, new Vec3D(14, 14, 0));
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Send Object Message, but also back to user?

Postby Lapo » 22 Feb 2017, 11:48

Hi,
no you can't send an ObjectMessage to yourself, only to the recipients.

Only chat messages include the sender, so that it's easier to keep track of all messages in order. If you want you can use SendPrivateMessage or SendPublicMessage. They also allow you to send a generic SFSObject. Check the parameters in the respective requests.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 54 guests