Game Development Community

Scheduling

by Tyler Pfaff · in Technical Issues · 10/18/2004 (8:57 am) · 2 replies

Hey folks, I'm having some problems with the schedule function. I want the camera to switch to 3rd person during special animations so in the player.cs in the playCelAnimation function I have this:

toggleFirstPerson(1); schedule(2000, 1, "toggleFirstPerson");

the idea is that the camera will switch to 3rd person and then switch back 2 seconds later. However, the camera switches out, but never switches back; like the scheduled function doesn't get called. However I get no errors or anything.

Any suggestions?

#1
10/18/2004 (9:09 am)
Schedule(2000, 0, "toggleFirstPerson", 1);
#2
10/18/2004 (9:35 am)
Cool, that worked. I was under the impression that the second parameter was what you pass into the function being scheduled. Evidently i was wrong.