| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Sun Mar 16, 2025 7:12 am    Post subject: selfdeactivating script |   |  
				| 
 |  
				| Some already know, but for those that don't know, this is a handy script to auto turn of a script after a few milliseconds 
 
  	  | Code: |  	  | {$lua}
 if syntaxcheck then return end
 createTimer(100,function()
 memrec.active=false
 end)
 {$asm}
 
 | 
 
 e.g handy for code that does stuff to the currently selected unit, and you only want it to do it one time each. Combine with a hotkey and you can toggle it on just for  the selected items
 _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  |