Page MenuHomeFeedback Tracker

"local" eventhandler apply also to groups
New, WishlistPublic

Description

Currently the "local" eventHandler works on 'objects' only.

The EH does not work on groups. In case of ownership transfer from the server to a HC, unit/group directives are lost. E.g. when a group has been garrisoned (each unit in a seperate building), the group units lose their position data and regroup on their leader after group ownership transfer.

Currently I am solving this by storing the unit's data + position data in tn array and setVariable @ group. Before transfer a loadbalancer script running on the server retrieves the data and then then remoteExec's the data to the new owner (HC). New owner then executes a function to re-apply the position data. Works well, but it is a costly method. Especially as garrison scripts are quite costly as well.

If an EH can be applied to a group than the script that applied the group directives (e.g. garrison) can also apply the EH and re-apply the group directives after transfer.

The EH won't have to change that much. Instead of returning (_this select 0) the object it returns the group.

A lot of (larger) communities use one or more HC's. The EH would make life a lot easier for mission makers :)

Details

Legacy ID
2806736333
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

whiztler set Category to Feature Request.Jan 3 2016, 5:48 PM
whiztler set Reproducibility to N/A.
whiztler set Severity to None.
whiztler set Resolution to Open.
whiztler set Legacy ID to 2806736333.May 8 2016, 1:25 PM
commy2 added a subscriber: commy2.May 8 2016, 1:25 PM
commy2 added a comment.Jan 3 2016, 7:30 PM

You could add a local event to every unit in the group instead and check if it's the group leader. A group will always be local to the machine where it's leader is local afaik.

Thanks buddy. Will do some testing this week.