• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Proper Indexing

Status
Not open for further replies.
Level 11
Joined
Aug 24, 2009
Messages
706
I was revamping my squad system to index squads by player rather than by putting them all in one index for all players. I ran into some problems as the indexing was overwriting squads owned by players that were not the most recent player that created the squad. Also removing dead squads doesn't work either. Where has my indexing gone wrong in this?

This is for registering the squad leader
5d6f7dd3c7957b5b7f36fdd638b09ddf.png


This is when the squad dies
99a3b9267ca8d2aa141d0990a120133b.png
 
Status
Not open for further replies.
Top