Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll - get all players?
Re: scripts.dll - get all players? [message #241895 is a reply to message #241876] Sun, 28 January 2007 15:04 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
the only idea i had was to make a array of GameObjects.
make a player join hook.
make a player leave hook

when someone joins, it puts their GameObject in the array. where their ID would be the index of the array.

whe someone leaves it uses their ID as an index in the array to set it to null.

when i want to see all the players just call Get_Player_Count() and loop that many times through the array.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sounds
Next Topic: Animating Models
Goto Forum:
  


Current Time: Sat Jan 11 06:39:21 MST 2025

Total time taken to generate the page: 0.00823 seconds