Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Lua sleep()
Re: Lua sleep() [message #450339 is a reply to message #450306] Sat, 30 July 2011 11:10 Go to previous messageGo to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
:Destroyed() gets triggered when the the script is destroyed, you need to use :Timer_Expired(). In the chat hook you need to attach and destroy the script when a player types "!music on" and "!music off" respectively. You should add some debug messages in all the major hotspots in your code so you can see what gets triggered and what does not.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lua. Answers.
Next Topic: What's the TFD Renegade registry path?
Goto Forum:
  


Current Time: Fri Dec 20 13:39:55 MST 2024

Total time taken to generate the page: 0.00762 seconds