25.09.2013, 22:15
Been thinking about this for a while now. Let's say I want to connect 4 NPCs after each other. They'd obviously need to start after the last one has been processed through OnPlayerConnect but I want to assign data to them as I load them (same way if a player connects to a server and it fetches that player's data from the database). How'd I do that? I thought about a multi-dimensional foreach or just a multi-dimensional array but I don't think that'd do the job. Anyhow I haven't got a clue on how I'd do it now when I wish to assign the NPCs data from my database.