Jump to content
Sign in to follow this  
jts_2009

Nametags - script

Recommended Posts

Author: JTS

Features:

- Ability to change the colors

- Works in singleplayer and multiplayer

- Displays: Health of unit

- Displays: Vehicle-type of the unit

- Displays: Distance to the unit

- Works in ARMA 2 and ARMA 2: OA/CO

Description:

Made my nametags script :). So. Despite the same colors as in mission 'Evolution' - this is my script. Made 2 examples - for SP and MP (for MP means, that names will be displayed only by players). You can change the colors. They are defined in local variable in the script. For now, it supports 30 players. You can change this if it's needed. Here is what you can change:

_ColorName = "#AAFFAA"; - Color of name

_ColorHealth = "#FFFFFF"; - Color of health

_ColorDistance = "#AAAAFF"; - Color of distance

_ColorVehicleType = "#FFFFFF"; - Color of vehicle-type of the unit, when he gets into vehicle

The colors you can find here: http://www.w3schools.com/html/html_colors.asp

_Visibility = 1000; - Distance of visibility of the names

_AmountOfUnits = 30; - Maximum number of units to display

_NameOfUnit = "fg"; - Name of unit. You have to give name to your units like - fg1,fg2,fg3 and etc... to fg30 (_AmountOfUnits)

If you put a unit on map with name fg1 and another unit with name fg30 - don't worry. It works

Note:

Don't put unit as vehicle. Put him manually to the vehicle using command. Otherwise the vehicle will count as 1 unit and these who was inside, if they'll leave the vehicle - they will not have nametags. To avoid bugs, add to Description.ext line disabledAI = 1;. This disables the AI. Otherwise you'll have bug if you restart the mission (#restart, #reassign)

The script does not support yet the changing of unit (I mean if you press T and select another unit to play).

Script was only tested in multiplayer without spawn and with spawn at base. Respawn = 3. "BASE".

If you want more than 30 units - open Nametags.hpp (with texteditor) and add following:

class NT31 : NT_BASIC

{

idc = 131;

};

class NT32 : NT_BASIC

{

idc = 132;

};

and etc... I hope you understood :cool:

Screenshots:

56respig.jpg

Changelog:

v1.1

- Fixed bug when you open map

[Download - SP & MP]

Edited by JTS_2009

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

==================================================

You are not registered on Armaholic, or at least not that we are aware of. In the future we offer the possibility to authors to maintain their own pages.

If you wish to be able to do this as well please register on Armaholic and let me know about it.

This is not mandatory at all! Only if you wish to control your own content you are welcome to join, otherwise we will continue to follow your work like we have always done ;)

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites
Guest

Thanks for sending us the newest version :cool:

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×