Jump to content
Sign in to follow this  
gc8

prevent empty group removal

Recommended Posts

is it possible to prevent arma from deleting empty groups?

it maybe that its just the HC module that removes empty groups but I need to prevent that as they will get reinforced.

Any ideas?

Share this post


Link to post
Share on other sites

do i need to edit the HC module it self?

Share this post


Link to post
Share on other sites

As far as I know, with the removal of the last living unit, the group is deleted.

Taken from the wiki

Few rules about group in OFP:R.

1) When last man in group die or is moved to other group, group will be destroyed, and it can't be used anymore.

2) 1st man joined to empty group will be group leader.

That's regarding OFP:R but I don't think it has changed.

Share this post


Link to post
Share on other sites

What you could try is to make a gamelogic join the group. GL dont die. But even if it works i have no idea how it will affect the status of the group, if it stays on the right side or how soldiers will react that will be spawned/joined into the group at a later time.

Share this post


Link to post
Share on other sites
)rStrangelove;2122970']What you could try is to make a gamelogic join the group. GL dont die. But even if it works i have no idea how it will affect the status of the group' date=' if it stays on the right side or how soldiers will react that will be spawned/joined into the group at a later time.[/quote']

i tried that but problem was GL was considered as the group leader.

so even it would be made non-group leader i think there could still be problems.

Share this post


Link to post
Share on other sites

I respawn groups using the same group name after all units have been killed with no problems at all. Must be the HC module.

Share this post


Link to post
Share on other sites

how do you respawn a group?

Share this post


Link to post
Share on other sites
how do you respawn a group?

By saving the group name into a variable and then saving the soldiers types, rank, weapons etc into an array or arrays... and then monitoring how many in the group are alive with a simple loop.

When that number hits zero... then recreate the group from the information stored in the arrays.

Share this post


Link to post
Share on other sites

ok.thx twirly. that's still techically a creating a new group though which won't solve my problem.

Share this post


Link to post
Share on other sites

Not sure what you want exactly.... but it will be the same group name and you can save everything about the units in the group and restore it after. Any scripts that were run on the original units can be run again. Essentially... you can have the exact same group.

Share this post


Link to post
Share on other sites
Not sure what you want exactly.... but it will be the same group name and you can save everything about the units in the group and restore it after. Any scripts that were run on the original units can be run again. Essentially... you can have the exact same group.

usually the "handles" to group are biggest problem if it gets deleted.

and then it needs to be reinserted in HC... which means refresh of the whole HC bar

Share this post


Link to post
Share on other sites

Well since the group has the same name... it has the same handle.... the name is the handle.

If the group names are being deleted somewhere you have to find where that's happening and stop it. Don't know anything about HC so really can't help there.

Edited by twirly

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×