Rocko Bonaparte 0 Posted June 14, 2005 I posted a general question about this in the ofpec forums, but I think there's a detail I need from someone particularly experienced with the engine. Â I want to know some specifics about squad respawn. Â Specifically, I'm curious where the engine determines there'll be no more respawning when team spawning is enabled. Â More specifically, I want to know how it reacts to me shoving extra squad members in at the last minute, and how the killed handler might work with this. [Edit: I tried to create a new squad member in a killed handler. This new member does show up, but I cannot spawn into him -- I go seagull] I have a menu system for picking what kind of squad the player wants to be a part of. Â When this whole squad is killed off, I wish for this menu to return, and the player can pick again and respawn. Â The player assumes leadership of the squad; team spawn transfers the player down to the last remaining squad member. Â What I've discovered is that it's seagull time when the last squaddie dies, regardless of what I try. Â Well, I haven't tried immediately setting the health back to 1.0 and warping the last guy away, but that takes away the body too. Â I wouldn't want other players to know they just took out the last guy in a squad when the person just disappears. Â I don't know if it would work anyhow. What I think happens is right after the last person in the squad dies, the engine checks if there are any squad members. Â If not, then it's seagull time. Â If I, say, add another squad member after the last one died, no go--I still get seagulls. Â Does the killed event happen before or after this test in the engine? Â My initial impression of the killed event handler is it happens after the engine's own team respawn test. I'm writing some code for it now, and it isn't helping me. As an aside, is there a way to adjust the number of times a player died? Â To spawn into a unit, I add the unit to the players squad, kill them, and have them team spawn into the proper unit. Â This is hardly elegant. Share this post Link to post Share on other sites