(Created page with "=Properties= {{ScriptFunction|void|StartActivity|(int activityID)|Start an activity with its id.|5= Space.Activity.StartActivity(99956)<br> ''--If the activity exists, it wil...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
}} | }} | ||
− | {{ScriptFunction|void|FinishActivity|(int activityId, float score | + | {{ScriptFunction|void|FinishActivity|(int activityId, float score);|Start an activity with its id.|5= |
Space.Activity.FinishActivity(99956,100,0,function (rank)<br> | Space.Activity.FinishActivity(99956,100,0,function (rank)<br> | ||
Space.Log(rank.Level)<br> | Space.Log(rank.Level)<br> |
Start an activity with its id.
Get the leader board of an activity.
for i=1,#res do
Space.Log(res[i].Rank.." Score "..res[i].Score.." Username "..res[i].Username)
end
end)
Start an activity with its id.
Space.Log(rank.Level)
end)
|