Depends on what you are trying to do.
If you want an object to rotate around the player you could just put that script on the object that is being rotated and it should run from the start of the game (just make sure you put a moveTo player in there to get the object in the same cell as the player).
You can use an OnActivate block to initiate the rotation. Just use a short variable to keep track if the object has been activated or not.
That article was mainly meant to provide the math for other modders to adapt into their own scripts.