Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


making this script loop

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bruhmoment24_.
How do I cheat?
Reputation: 0

Joined: 28 May 2025
Posts: 1

PostPosted: Wed May 28, 2025 12:53 am    Post subject: making this script loop Reply with quote

I know nothing about this, but i need this script to perpetually loop the "CREATETHREAD(ApplyEffect)" bit every second while its enabled in the following script.


[enable]
CREATETHREAD(ApplyEffect)
[disable]
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 150

Joined: 06 Jul 2014
Posts: 4657

PostPosted: Wed May 28, 2025 10:48 am    Post subject: Reply with quote

Code:
{$lua}
if syntaxcheck then return end

if autoApplyEffectTimer then
  autoApplyEffectTimer.destroy()
  autoApplyEffectTimer = nil
end

[ENABLE]

autoApplyEffectTimer = createTimer()
autoApplyEffectTimer.Interval = 1000
autoApplyEffectTimer.OnTimer = function(t)
  autoAssemble'createThread(ApplyEffect)'
end

[DISABLE]

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites