how to tell if a loop exists? (SOLVED)

Started by EnterTheStory (aka tolworthy), Mon 22/09/2008 14:10:48

Previous topic - Next topic

EnterTheStory (aka tolworthy)

Is there any way I can check if a view loop exists before calling it and risking a crash?

GarageGothic

You can use Game.GetLoopCountForView(int view) (and similar use Game.GetFrameCountForLoop to check that an existing loop doesn't have 0 frames).

EnterTheStory (aka tolworthy)

Quote from: GarageGothic on Mon 22/09/2008 14:51:01
You can use Game.GetLoopCountForView(int view) (and similar use Game.GetFrameCountForLoop to check that an existing loop doesn't have 0 frames).
Thanks! Much appreciated!

SMF spam blocked by CleanTalk