Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Feature Request - Allow custom unit names in ACEX kill tracker #194

Closed
simkas opened this issue Oct 19, 2019 · 7 comments · Fixed by #211
Closed

Feature Request - Allow custom unit names in ACEX kill tracker #194

simkas opened this issue Oct 19, 2019 · 7 comments · Fixed by #211
Assignees
Milestone

Comments

@simkas
Copy link

simkas commented Oct 19, 2019

I noticed that the kill tracker currently gets the name of the unit that it displays in the kill info directly from the unit config. It would be nice to be able to set some kind of variable or something on AI units to make the kill info use that custom name instead of just the class display name. This would be useful for cases when the enemy units being used have custom mission enforced loadouts instead of just using the basic classes.

@stale
Copy link

stale bot commented Jan 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Jan 17, 2020
@dedmen
Copy link
Contributor

dedmen commented Jan 19, 2020

to set some kind of variable or something on AI units to make the kill info use that custom name instead of just the class display name

https://community.bistudio.com/wiki/setName

Close?

@stale stale bot removed the inactive label Jan 19, 2020
@simkas
Copy link
Author

simkas commented Jan 19, 2020

The ACEX kill tracker doesn't use that name, does it?

@PabstMirror PabstMirror self-assigned this Jan 19, 2020
@PabstMirror PabstMirror added this to the Ongoing milestone Jan 19, 2020
@dedmen
Copy link
Contributor

dedmen commented Jan 21, 2020

You mean this?
https://github.com/acemod/ACEX/blob/master/addons/killtracker/XEH_postInit.sqf#L116
See
https://github.com/acemod/ACE3/blob/master/addons/common/functions/fnc_getName.sqf

I noticed that the kill tracker currently gets the name of the unit that it displays in the kill info directly from the unit config.

not sure if you mean the "killed" unit or the "killer" unit.

@simkas
Copy link
Author

simkas commented Jan 21, 2020

Oh I guess I didn't quite make that clear in the original post, I mean the unit that was killed. If that unit was AI, its name is taken from the config.

format ["*AI* - %1", getText (configfile >> "CfgVehicles" >> (typeOf _unit) >> "displayName")];

@PabstMirror
Copy link
Contributor

Would something like this work for you?
Lets you setVar acex_killTracker_aiName to anything

private _name = _unit getVariable ["acex_killTracker_aiName", ""];
if (_name == "") then { _name =  format ["*AI* - %1", getText (configfile >> "CfgVehicles" >> (typeOf _unit) >> "displayName")]; };

another option would be to add a setting to just use ace_fnc_getName instead of the *AI* thing

@simkas
Copy link
Author

simkas commented Jan 21, 2020

Having a name variable that is used if it is set and having it use the config name when that isn't set sounds pretty great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants