Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Lua hooks help
Re: Lua hooks help [message #449087 is a reply to message #449078] Sat, 25 June 2011 02:52 Go to previous messageGo to previous message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma:
Colonel
iRANian wrote on Fri, 24 June 2011 23:00

I'm not familiar with the LUA plugin but if you do it via C++ you can create and attach a script and in the ::Killed() event do that kind of stuff. Does the LUA plugin allow you to create scripts?

Oh and in the A Path Beyond Gamma mod (which includes a build of scripts 4.0) there's an issue with using the normal spectate code, if you put someone in spectate in that mod, players will see the name tag of the player in spectate floating around where the player is located. So when scripts 4.0/TT patch gets released in the future, Renegade players will probably also be able to see the name tag of the guy in spectate.


Lua 4/5 supports Scripts, you can attach a script to all Players and use killed hook call from the script, is easy and yes you can see spectate on 4.0, i tested it on mutant co-op and i saw one of mods flying around me, lol


Creator of Mutant Co-Op
Developer of LuaTT
 
Read Message
Read Message
Read Message
Read Message icon2.gif
Read Message
Previous Topic: C&C Renegade CNC 3 Background Earth
Next Topic: Creating an object with the string name "Proxy C4"
Goto Forum:
  


Current Time: Sat Nov 09 11:13:47 MST 2024

Total time taken to generate the page: 0.00654 seconds