SecretUI

SecretUI (https://www.secretui.com/forums/index.php)
-   General Authoring Discussion (https://www.secretui.com/forums/forumdisplay.php?f=155)
-   -   Access to objects....? (https://www.secretui.com/forums/showthread.php?t=31)

DeeJayTC 07-14-2012 02:54 AM

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?

DeathTiger 07-15-2012 03:19 AM

Quote:

Originally Posted by DeeJayTC (Post 94)
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.


All times are GMT -6. The time now is 08:32 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2020 MMOUI