https://github.com/tankode/a3_notifications
A notification system for Arma 3.
https://github.com/tankode/a3_notifications
altis-life altislife arma arma3 notification notification-service notifications
Last synced: about 1 year ago
JSON representation
A notification system for Arma 3.
- Host: GitHub
- URL: https://github.com/tankode/a3_notifications
- Owner: TanKode
- License: mit
- Created: 2017-02-15T10:34:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T11:31:30.000Z (over 9 years ago)
- Last Synced: 2025-04-01T07:53:54.567Z (about 1 year ago)
- Topics: altis-life, altislife, arma, arma3, notification, notification-service, notifications
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A3 Notification System
[](https://travis-ci.org/TanKode/a3_notifications/branches)
[](https://github.com/TanKode/a3_notifications/releases)
[](https://github.com/TanKode/a3_notifications/blob/master/LICENSE)
A user notification system for ArmA 3 to replace `hint` and offer a bit more styling.
## Installation
Put the file `fn_notification_system.sqf` in your mission into `tankode/fn_notification_system.sqf` and register it in your `CfgFunctions`.
**Description.ext**
```cpp
class CfgFunctions
{
class TanKode {
tag = "tankode";
file = "tankode";
class notification_system {};
};
};
```
## Usage
### Parameters
* **_text** `string` *required* text to display in the notification
* **_type** `string` *optional - default: user-color* type of this notification or the color name or the color as array/object
* **_speed** `integer` *optional - default: 10* time in seconds to show this notification
### Examples
```sqf
// default color for 10 seconds
["This is my notfication text."] call tankode_fnc_notification_system;
// success color for 10 seconds
["This is my notfication text.", "success"] call tankode_fnc_notification_system;
// indigo color for 5 seconds
["This is my notfication text.", "indigo", 5] call tankode_fnc_notification_system;
```