In my XAseco plugin Records-Eyepiece i want to add ManiaScript to build the CheckpointCount-Widget instead of build it in PHP like it now is.
I tried this, but it does not log anything:
Code: Select all
while (True) {
foreach (Event in PendingEvents) {
switch (Event.Type) {
case CTmModeEvent::EType::WayPoint : {
log("Checkpoint reached...");
}
}
}
yield;
}
Code: Select all
while (True) {
foreach (Event in PendingEvents) {
log(Event.Type);
}
yield;
}
Why is CTmModeEvent::EType::WayPoint are not fired, did i miss something? Does this only works in GameMode-Scripts?