In the onCreated() event, put
That will start the timeout loop. The code within the onCreated() event is triggered when the weapon is created (Pretty obvious). However, the onTimeout() event needs to be triggered by either calling it directly, or by setting a specific time with
http://gscript.graal.net/onTimeout