Skip to content

Commit

Permalink
Set face and speaker of spawned units to match faction
Browse files Browse the repository at this point in the history
  • Loading branch information
theace0296 committed Sep 3, 2021
1 parent f39e836 commit 0c1cb8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RandFramework/Global/common/fn_createUnit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ if !(_unitType isEqualTo "") then {
_unit = _group createUnit [_tempUnitType, _position, _markers, _placement, _special];
if !(_type isEqualTo _tempUnitType) then {
[_unit, _type] call TRGM_GLOBAL_fnc_setLoadout;
private _tempUnit = (createGroup CIVILIAN) createUnit [_type, [0,0,0], [], 0, 'NONE'];
private _speaker = speaker _tempUnit;
private _face = face _tempUnit;
deleteVehicle _tempUnit;
_unit setSpeaker _speaker;
_unit setFace _face;
};

if (_unit isEqualTo leader _group && !_disableDynamicShowHide) then {
Expand Down

0 comments on commit 0c1cb8c

Please sign in to comment.