Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Lua sleep()
Re: Lua sleep() [message #450327 is a reply to message #450306] Sat, 30 July 2011 05:43 Go to previous messageGo to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
The script syntax in Lua 5.0 is different and looks like:

myscript = {}
function myscript:Created(ID, obj)	
	print("Created", ID, obj)
end

function myscript:Destroyed(ID, obj)
	print("Destroyed", ID, obj)
end

function myscript:Killed(ID, obj, killer)
	print("Killed", ID, obj, killer)
end

Register_Script("myscript", "", myscript)


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 17:01:15 MST 2024

Total time taken to generate the page: 0.00777 seconds