-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCREGrouper.vsl
28 lines (23 loc) · 1.02 KB
/
SCREGrouper.vsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
////////////////////////
// Description : Edit by ghomist
void main()
{
Group ps = Group.Cast(ac.GetObjectByNameAndClass("PS_Levelstart", CKCID_GROUP,NULL));
Group pc = Group.Cast(ac.GetObjectByNameAndClass("PC_Checkpoints", CKCID_GROUP,NULL));
Group pe = Group.Cast(ac.GetObjectByNameAndClass("PE_Levelende", CKCID_GROUP,NULL));
Group pr = Group.Cast(ac.GetObjectByNameAndClass("PR_Resetpoints", CKCID_GROUP,NULL));
Entity3D start = Entity3D.Cast(ac.GetObjectByName("PS_FourFlames_01",NULL));
if (ps && start) ps.AddObject(start);
Entity3D end = Entity3D.Cast(ac.GetObjectByName("PE_Balloon_01",NULL));
if (pe && end) pe.AddObject(end);
for (int i=1; i<=8; i++){
String pcName = "PC_TwoFlames_0";
pcName += i;
Entity3D checkPoint = Entity3D.Cast(ac.GetObjectByName(pcName.Str(),NULL));
if (checkPoint && pc) pc.AddObject(checkPoint);
String prName = "PR_Resetpoint_0";
prName += i;
Entity3D resetPoint = Entity3D.Cast(ac.GetObjectByName(prName.Str(),NULL));
if (resetPoint && pr) pr.AddObject(resetPoint);
}
}