Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » LUA Question
LUA Question [message #448983] Tue, 21 June 2011 12:02 Go to next message
hego64 is currently offline  hego64
Messages: 19
Registered: April 2011
Location: Hegoville
Karma: 0
Recruit
Ok so I was browsing some older posts here, and found some lua stuff. One thing was cPlayer(PlayerID). How can I make this work? I fiddled with it and it only resulted in a headache. I couldn't get anything to work, and would like some help with this.

Thanks,
Hego64
Re: LUA Question [message #448987 is a reply to message #448983] Tue, 21 June 2011 14:59 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
http://www.dcomproductions.com/forums/
will be back up in a week most likely. They are the original LUA forums.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: LUA Question [message #448988 is a reply to message #448983] Tue, 21 June 2011 15:16 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
From my testing with cPlayer using the C++ API directly half of the stuff doesn't work.

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
Re: LUA Question [message #448993 is a reply to message #448988] Tue, 21 June 2011 17:15 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
iRANian wrote on Tue, 21 June 2011 15:16

From my testing with cPlayer using the C++ API directly half of the stuff doesn't work.



http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: LUA Question [message #449088 is a reply to message #448983] Sat, 25 June 2011 02:54 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
i talked with jnz about this some months ago, it works on Lua 5 but not all stuff work, eg. changing player name not work correctly, the new name is displayed on other players only if they rejoin the server.

cPlayer is a table, you need to see the changelist to know what call from table to do to get info.


Creator of Mutant Co-Op
Developer of LuaTT
Re: LUA Question [message #449091 is a reply to message #448983] Sat, 25 June 2011 04:14 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
I've had the same experience with changing names with the C++ API so the LUA part is working correctly.

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
Previous Topic: AI Vehicles and Stealthing
Next Topic: C&C Renegade CNC 3 Background Earth
Goto Forum:
  


Current Time: Sat Dec 21 19:42:17 MST 2024

Total time taken to generate the page: 0.00932 seconds