Author: Celery
Author Website:

Requirements: No addons required

Version: 1.1

Short description: Morse code encoder/decoder and player

Date: 2011-06-14 14:03


Comments: (0)
Rating:



 







CLY Morse

by
Celery


Description:
Script that encodes plain text into Morse and vice versa, and plays the sounds too.


Usage:
Encode a text:
morsestring=["Encode"] call CLY_morse;
 hintSilent format ["%1",morsestring];

Decode a Morse transmission:
morsestring=["-.. . -.-. --- -.. ."] call CLY_morse;
 hintSilent format ["%1",morsestring];

Play Morse code sound:
morsestring=["This should play a sound.",objNull,2] call CLY_morse;


Installation:
It comes with a mission as a demo version. Extract the folder to your ArmA2\other Profiles\Yournick\Missions and load it in the editor.


Scripts code:
init.sqf
CLY_morse=compile preprocessFile "cly_morse.sqf";

description.ext

cly_morse.sqf


Changelog:
v1.1
  • Optimized code
  • Fixed 1 dot too long word space
  • Script now encodes Cyrillic alphabet (cut and paste the section above Latin if you need to decode into Cyrillic)


  • Forum topic:
    - BI forums




    Enable javascript to be able to download from Armaholic please!



    Tags: Morse