anusmangler 1 Posted May 7, 2013 Ok I got this mission, I want to be able to RESPAWN my GROUP with me as team leader (unit type doesnt matter right now) at base upon death. Also If there is a way for if say everyone dies in my group they "respawn" at base and wait till I die then I can control them again. if that cant happen thats fine Im really just after upon me dying I want to respawn myself and the group together. Ive done the simple script with "4" or "group" I know how to do that nor is it what Im looking for cause if everyone dies then I respawn as nothing. If its super complex thats fine, 10000000000000000000000000000000000 thanks for the person that can finally help me Share this post Link to post Share on other sites
Larrow 2826 Posted May 7, 2013 Presume this is an AI group you want respawning with you? Is this SP, MP, Dedicated?? Could you not, add an eventHandler to the player so when he respawns, create a new group at players position, join the player to the group, set player as leader. Something like:- this addEventHandler ["respawn",{_this execVM "groupRespawn.sqf"}]; //in player init //////////////////// //groupRespawn.sqf// //////////////////// waitUntil{!(isNull player)}; //create new group of units _newGroup = [getPosATL player, east, (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> "OIA_InfSquad")] call BIS_fnc_spawnGroup; //join the player to the newGroup player joinSilent _newGroup; //make player the leader group player selectLeader player; other things will need thinking about like- Create group array will need fixing to supply right side and group type to spawn. The new group would be a standard group plus you, you would need to remove a member? Would joinAsSilent be better, as above, delete unit at position 1 and add yourself there? Has your AI group got custom item,weapons,identities etc that would need to be accounted for? What happens to any members of your previous group that were not dead? delete them? are they still part of your group on respawn? would need degrouping. Not perfect but may point you towards a solution or maybe more question :D Share this post Link to post Share on other sites