-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete "Teleport Players" module after use #4368
Conversation
@jonpas on slack asked if there are more modules that should do this. Most of them already do it, and there are some that don't do it by design. @SilentSpike do you think the "Group Side" module could also be deleted after use? |
This is a weird one, because it can be handy to leave the module attached to a plane or whatever and repeatedly teleport waves of players to the same location. However if you don't intend to use it like that then it does just create clutter. Group side one should probably self-delete yeah. |
Could have another checkbox saying "delete after use", and then have |
When I first wrote it I thought of that but decided it was kind of pointless since zeus has the power to delete it anyway. In keeping with good UX design I say if people expect it to self-delete then it should behave that way. |
@@ -128,7 +128,7 @@ private _fnc_onConfirm = { | |||
private _unit = effectiveCommander (attachedTo _logic); | |||
private _side = [west,east,independent,civilian] select (GETVAR(_display,newSide,GETVAR(_display,oldSide,0))); | |||
|
|||
[_unit, _side] call FUNC(moduleGroupSide); | |||
[_unit, _side, _logic] call FUNC(moduleGroupSide); | |||
deleteVehicle _logic; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It actually looks as though the logic should be getting deleted already by this function, is that not the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should probably remove this one so it fits every other module function, where the module gets deleted at the end of moduleDERP.sqf
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UI modules actually get deleted at the end of their respective UI function (if there's no reason to pass the module on to the further function).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted.
This reverts commit 2880c61.
When merged this pull request will:
The "Teleport Players" module ace adds is a very useful little utility, but the module itself isn't really needed after it's used once. It just creates clutter after repeated use and has to be manually removed.