Hey there !
Im spawning some MMOItems server side and wanted to make them visible to clients... i get the notification that the proximity event is called when i spawn them... but i have no idea whats the param for them, to acess those spawned MMOItems... any idea ?
What is the params for MMOItems on proximity update ?
Re: What is the params for MMOItems on proximity update ?
HI,
take a look at the addedItems List passed in the SFSEvent.PROXIMITY_LIST_UPDATE event.
I am not sure which client type you're using. Supposing it's Unity here's the specific doc page:
http://docs2x.smartfoxserver.com/api-do ... 484859.htm
It also works for all others supported platforms. Essentially the PROXIMITY_LIST_UPDATE always sends you 4 lists that may contain data:
- addedUsers
- removedUsers
- addedItems
- removedItems
Hope it helps
take a look at the addedItems List passed in the SFSEvent.PROXIMITY_LIST_UPDATE event.
I am not sure which client type you're using. Supposing it's Unity here's the specific doc page:
http://docs2x.smartfoxserver.com/api-do ... 484859.htm
It also works for all others supported platforms. Essentially the PROXIMITY_LIST_UPDATE always sends you 4 lists that may contain data:
- addedUsers
- removedUsers
- addedItems
- removedItems
Hope it helps
Who is online
Users browsing this forum: No registered users and 67 guests