Home » Renegade Discussions » Mod Forum » Lua Question
|
Re: Lua Question [message #463424 is a reply to message #463298] |
Thu, 01 March 2012 21:26   |
 |
halo2pac
Messages: 659 Registered: December 2006 Location: Near Cleveland, Ohio
Karma: 0
|
Colonel |
|
|
Use an array to store the kills, on player join you set yourarray[PLAYER ID] to 0. every kill you set yourarray[PLAYER ID]++ and do an if statement to check whether or not yourarray[PLAYER ID] = 50.
This is pretty basic programming stuff by the way, you should really look at some tutorials for java or visual basic.
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 #463543 is a reply to message #463508] |
Sat, 03 March 2012 13:22  |
 |
halo2pac
Messages: 659 Registered: December 2006 Location: Near Cleveland, Ohio
Karma: 0
|
Colonel |
|
|
Gen_Blacky wrote on Sat, 03 March 2012 03:23 |
sla.ro(master) wrote on Sat, 03 March 2012 01:09 | @iran and halo2pac: he talks about Lua, not C++......
you can just use Change_Character(obj, char) when you a player have 50 kills or whatever (use Get_Kills(playerID)). If your using TT, use LuaTT and there is a Kill hook. look on examples.
check here for functions
|
you can do everything they said with lua.
|
Rene-Buddy | Renegade X
Join the fight against Obsessive- Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
|
|
|
Goto Forum:
Current Time: Tue Feb 25 05:56:46 MST 2025
Total time taken to generate the page: 0.00754 seconds
|