Spearhead 1944 Nametags: Difference between revisions
(Created page with "{{TOC|side}} Spearhead 1944 introduces a scripted nametag system. While it was designed for the campaign to aid new players it can also be enabled in other scenarios. = S...") |
m (typo) |
||
Line 5: | Line 5: | ||
Put the following code into the [[Event Scripts#initPlayerLocal.sqf|initPlayerLocal.sqf]]. | Put the following code into the [[Event Scripts#initPlayerLocal.sqf|initPlayerLocal.sqf]]. | ||
<sqf inline>[] call | <sqf inline>[] call SPE_MISSIONUTILITYFUNCTIONS_fnc_NameTags;</sqf> | ||
The system will then be initialized on every client. | The system will then be initialized on every client. |
Revision as of 23:25, 9 August 2023
Spearhead 1944 introduces a scripted nametag system. While it was designed for the campaign to aid new players it can also be enabled in other scenarios.
Setup
Put the following code into the initPlayerLocal.sqf.
[] call SPE_MISSIONUTILITYFUNCTIONS_fnc_NameTags;
The system will then be initialized on every client.
Settings
Accessing Settings Menu
The nametag system comes with the option to be customized by the player. The settings menu can be found in the pause menu ESC. Settings are only available after a scneario has started.
Setting Descriptions
Enable Nametags
Description: Toggles the nametags system on/off.
Default Value: true
MissionNamespace variable: spe_options_client_nametags_enabled
Enable Shadows
Description: Draws a drop shadow behind the text and icon for better legibility.
Default Value: true
MissionNamespace variable: SPE_Options_Client_NameTags_Shadow
Red
Description: Red color amount.
Default Value: 1 (100%)
MissionNamespace variable: SPE_Options_Client_NameTags_Color_R
Green
Description: Green color amount.
Default Value: 1 (100%)
MissionNamespace variable: SPE_Options_Client_NameTags_Color_G
Blue
Description: Blue color amount.
Default Value: 1 (100%)
MissionNamespace variable: SPE_Options_Client_NameTags_Color_B
Draw Distance
Description: How many meters the nametags are going to be visible. The nametags will start fading out at drawDistance/1.5 meters.
Default Value: 150
MissionNamespace variable: SPE_Options_Client_NameTags_DistMax
Height Offset
Description: Height offset in meters from original position.
Default Value: 0
MissionNamespace variable: SPE_Options_Client_NameTags_Offset
Icon Size
Description: Icon size in percent.
Default Value: 0.8 (80%)
MissionNamespace variable: SPE_Options_Client_NameTags_IconSize
Text Size
Description: Text size in percent.
Default Value: 0.8 (80%)
MissionNamespace variable: SPE_Options_Client_NameTags_TextSize_Modifier
Show Icon
Description: Toggle the visiblity of the icon on/off.
Default Value: 0.8 (80%)
MissionNamespace variable: SPE_Options_Client_NameTags_ShowIcon
Reset Settings
Description: Resets settings to default value. For this option to take effect, the settings UI needs to be closed by pressing OK.
Default Value: false
MissionNamespace variable: -