Properties
StartActivity
void StartActivity
(int activityID)
Start an activity with its id.
Space.Activity.StartActivity(99956)
--If the activity exists, it will start.
RequestLeaderboard
void RequestLeaderboard
(int activityID, Closure results)
Get the leader board of an activity.
Space.Activity.RequestLeaderboard(99956,function (res)
for i=1,#res do
Space.Log(res[i].Rank.." Score "..res[i].Score.." Username "..res[i].Username)
end
end)
--If the activity exists, it will display Score info.
FinishActivity
void FinishActivity
Start an activity with its id.
No documentation
Space.Activity.FinishActivity(99956,100,0,function (rank)
Space.Log(rank.Level)
end)
--If the activity exists, it will display ScoreRank info.
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|