View Full Version : changing a unit's group number
Mongoose_84
Dec 17 2006, 20:52
is there a command for changing a unit's number within it's group? i couldn't find anything, but i need to do that, so i can select the unit that is used for group respawning - by making it the new number 1. or maybe i can switch numbers with the dead player's unit? http://forums.bistudio.com/oldsmileys/help.gif
edit: or if that just isn't possible, i need a way to select the unit with the highest number in the group, so i can run a script on that unit, before the player takes control of it.
ColonelSandersLite
Dec 17 2006, 21:30
The number of the soldier inside a group is the order theyre added.
If someone leaves, his slot will be taken up by the next unit to join.
The only way to reoreder them would be to split them off the main group, then add readd them all to the group in the order you want. At least in ofp. Not 100% positive for arma.
Mongoose_84
Dec 18 2006, 06:09
thx for the reply,
so i assume there's no other way then but to
- remove the player from the group the moment he dies
- remove the unit you want to respawn into as well
- add that unit to the group again (it will automatically be nr. 1, right?)
- add the player to the group again, so the entire group respawn thing will work
is there a simpler way, perhaps?
Mongoose_84
Dec 18 2006, 07:28
it works pretty much as i expected. only the respawn script doesn't play along... it seems to pick the next player's unit even before i can change the order inside of the killed-eventHandler. so although there's a new number one instantly after the player's death, it seems to always pick the following one.
is that even how it works? i mean, does group respawning always pick the highest available number? or does it prefer a lower number then the dead unit was, for example? or does it work differently?
... by now however, i would rather just disable/override the default respawn scripts - no dove either, just want the game not to stop running as normal, after a player's death, so i can switch player units myself (i hope that's even possible in MP). i guess, a simple removeAllEventHandlers command won't do the trick, will it? http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/huh.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.