![]() |
![]() |
|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Does anyone know how to loop through the player team and assign a specific variable to each actor in the team so you can track stats, etc. per human player?
Also, do you have to re-link your variable to the actor object when the player respawns via the respawn event? Thanks, Theales |
|||
|
If my question doesn't make sense, please let me know so I can re-word it. If it does make sense, but no one is familiar with this idea, again please let me know. If anyone is interested in using this info if I ever get it to work, also let me know and I will post what I find. Thanks everyone,
Theales |
||||
|
On Site Archivist![]() |
Sorry I haven't responded, but I only work on co-op type stuff, so respawns/MP/actor-specific stuff is beyond my skill level...
I'm also working on my first mod, so some people might even say "basic Igor" is beyond my skill level... |
|||
|
Thanks for the response, Chunk! Good news is that I was able to figure it out.
I am using it in my co-op mod to set a variable to each player in the game...thus my "player1" variable always points to the first player in the game while "player2" points to the second player and so on. This gives me the ability to (although pointless, it's kinda neat) send a message to all players on startup listing who has joined the game with their player names. I am also using this to keep track of the number of kills each player has. So when the first player makes another kill, a message is displayed to everyone stating that player1 ("Theales") has killed XX enemies! It's neat to keep track of how many kills you have in-game. Also, now that I have a unique variable assigned to each player in the game, I can script things which work against specific actors, thus targeting a specific player in the game: Teleport player1 ("Theales") to zone XX. Teleport player2 ("Chunk") to zone YY. There are a lot of things you can do with it...also keep track of how many times each player died while in-game, and show everyone the message when someone dies. "Theales has died X times." Right now I only have it set up to work with up to 8 players in a co-op game, but you can expand that easily if you have more people. Post some ideas on what we can do with this! I'd be happy to send the code to anyone who needs/wants it...or post it here for everyone. Theales |
||||
|
|
Chief Drooler |
Wow, that sounds pretty cool. All great ideas
|
|||
|
On Site Archivist![]() |
Agree with Cob, that sounds interesting!! Never would have come up with that on my own...
So, I guess that means you can be "mean", too... set this script up to run every 5 seconds... ContinueIf player1 = "Chunk" Teleport "Chunk" to Insertion ContinueIf player2 = "Chunk" Teleport "Chunk" to Insertion ... Then, whenever I join your game, I'll keep wondering what the heck is going on!!!! |
|||
|
|
Chief Drooler |
Oooo. Let me write that down
|
|||
|
GR Elite![]() |
Why teleport the actor back to the insertion zone, Chunk, when there's a perfectly good "KillActor" response...??
|
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

