Quantcast Access to objects....? - SecretUI
Reply
Thread Tools Display Modes
Unread 07-14-2012, 02:54 AM   #1
DeeJayTC
Join Date: Jul 2012
Posts: 2
Access to objects....?

Hey,
while playing around with some ideas i was trying to get information about online friends and guildmembers and inventory slots etc.

However i always end up with "undefined" e.g no object instance found.

Was trying to do the following:

com.gameobjects.guild.getinstance().gettotalguildmembers()
com.gameobjects.friends.getonlinefriends()
com.gameobjects.friends.getonlineguildmembers()

nothing seems to work...

What is needed to access the data?
DeeJayTC is offline   Reply With Quote
Unread 07-15-2012, 03:19 AM   #2
DeathTiger
 
DeathTiger's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 11
Quote:
Originally Posted by DeeJayTC View Post
Hey,
while playing around with some ideas i was trying to get information about online friends and guildmembers and inventory slots etc.

However i always end up with "undefined" e.g no object instance found.

Was trying to do the following:

com.gameobjects.guild.getinstance().gettotalguildmembers()
com.gameobjects.friends.getonlinefriends()
com.gameobjects.friends.getonlineguildmembers()

nothing seems to work...

What is needed to access the data?
Add the required import.
PHP Code:
import com.GameInterface.Friends
Set the number of online friends within a function.
PHP Code:
var onlineFriends:Number Friends.GetOnlineFriends(); 
Worked for me.
DeathTiger is offline   Reply With Quote
Reply

Go BackSecretUI » Developer Discussions » General Authoring Discussion » Access to objects....?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off