Line 30: | Line 30: | ||
{{ScriptFunction|string|Role|{ get; }|Player's role in this group.|5=<pre> | {{ScriptFunction|string|Role|{ get; }|Player's role in this group.|5=<pre> | ||
− | Role = Space.Groups.GetGroupInfo(350).Role</pre>|6=<pre></pre> | + | Role = Space.Groups.GetGroupInfo(350).Role</pre>|6=<pre>--Clicking this object will show canvas1 if you are a VIP in the group |
+ | --and will show canvas2 if you are a regular member | ||
+ | --and will show canvas3 if you are the group owner | ||
+ | |||
+ | thisObject = Space.Host.ExecutingObject | ||
+ | |||
+ | canvas1 = Space.Host.GetReference("canvas1")--Add this object with canvas as reference in Scripting Runtime | ||
+ | canvas2 = Space.Host.GetReference("canvas2")--Add this object with canvas as reference in Scripting Runtime | ||
+ | canvas3 = Space.Host.GetReference("canvas3")--Add this object with canvas as reference in Scripting Runtime | ||
+ | |||
+ | OnClickFunction = function() | ||
+ | |||
+ | local groupInfo = Space.Groups.GetGroupInfo(350) | ||
+ | |||
+ | if groupInfo.Role == "Owner" then | ||
+ | canvas3.Active = true | ||
+ | elseif groupInfo.Role == "VIP" then | ||
+ | canvas1.Active = true | ||
+ | elseif groupInfo.Role == "Normal" then | ||
+ | canvas2.Active = true | ||
+ | end | ||
+ | |||
+ | end</pre> | ||
}} | }} | ||
The ID of the group.
ID = Space.Groups.GetGroupInfo(350).ID
The ID of the group's owner.
OwnerID = Space.Groups.GetGroupInfo(350).OwnerID
The name of the group.
Name = Space.Groups.GetGroupInfo(350).Name
The description of the group.
Description =Space.Groups.GetGroupInfo(350).Description
The level of access the group has, e.g. public or private.
Access = Space.Groups.GetGroupInfo(350).Access
The URL of the group's image.
ImageUrl = Space.Groups.GetGroupInfo(350).ImageUrl
The max number of members the group can have.
MaxAvatars = Space.Groups.GetGroupInfo(350).MaxAvatars
Player's role in this group.
Role = Space.Groups.GetGroupInfo(350).Role
--Clicking this object will show canvas1 if you are a VIP in the group --and will show canvas2 if you are a regular member --and will show canvas3 if you are the group owner thisObject = Space.Host.ExecutingObject canvas1 = Space.Host.GetReference("canvas1")--Add this object with canvas as reference in Scripting Runtime canvas2 = Space.Host.GetReference("canvas2")--Add this object with canvas as reference in Scripting Runtime canvas3 = Space.Host.GetReference("canvas3")--Add this object with canvas as reference in Scripting Runtime OnClickFunction = function() local groupInfo = Space.Groups.GetGroupInfo(350) if groupInfo.Role == "Owner" then canvas3.Active = true elseif groupInfo.Role == "VIP" then canvas1.Active = true elseif groupInfo.Role == "Normal" then canvas2.Active = true end end
Creation date of the group.
CreateDate = Space.Groups.GetGroupInfo(350).CreateDate
|