Next up is the create hero function (the rotating knight). He has one spvar at index 0 to keep track of how many milliseconds remaining to wait before he can fire off a shovel again. Note the SPFUNC call that says what to call to update him each frame.