Timer Script

I want to increment a tag on an interval. What is wrong with my syntax in the timer script?

if {[Client]Rotation}< 360:
{[Client]Rotation}={[Client]Rotation}+1
else:
{[Client]Rotation}=0

You have to use the system.tag functions to do this. Try something like this:

if system.tag.getTagValue("[Client]Rotation") < 360: system.tag.writeToTag("[Client]Rotation",system.tag.getTagValue("[Client]Rotation")+1) else: system.tag.writeToTag("[Client]Rotation",0)
This would go in a Client Event Timer Script.

Thanks!