Search the Community
Showing results for tags 'onplayerkilled'.
Found 2 results
-
GF Custom Deathscreen Script
GEORGE FLOROS GR posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
GF Custom Deathscreen Script by GEORGE FLOROS [GR] Description: Adding an image of blood and sound when killed to spice it a little bit . You are free to do anything but i would like to give me Credits for this! Simple and easy to use and adapt . Have Fun ! Installation: Installation / Usage: For usage instructions and information of how to use the GF Custom Deathscreen Script , please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.sqf and the description.ext , to copy paste in your mission . https://community.bistudio.com/wiki/SQF_syntax Don't try to open this with the simple notepad. For everything that is with comment // in front or between /* means that it is disabled , so there is no need to delete the extra lines. You can open this ex: with notepad++ https://notepad-plus-plus.org/ and also use the extra pluggins (this way will be better , it will give also some certain colours to be able to detect ex. problems ) http://www.armaholic.com/page.php?id=8680 or use any other program for editing . For the Compilation List of my GF Scripts , you can search in: https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/ Credits & Thanks: Thanks to All script contributors Thanks to everyone who tries to do the best for this game! Thanks to BIS for such a great platform . Thanks to BIS Community and BIS Community Forums . Thanks to Armaholic Community and Forums . Changelog: v1.1 fixed name v1.0 Forum topic: - Armaholic forums Armaholic GF Custom Deathscreen Script- 17 replies
-
- 5
-
- deathscreen
- sound
-
(and 8 more)
Tagged with:
-
Killer info in cutText on player killed
HonzaVinCZ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'm working on my multiplayer mission and I'd like to ask if there is possible to make killer info in cutText in onPlayerKilled.sqf or any other way but still by cutText. I'm not very experienced with scripting, I can understand to easier scripts or some parts of more difficult scripts. So I'd also like to ask if you would be so nice to also add some explain into code like //This makes... The respawn timer set by mission is 5 sec. My current onPlayerKilled.sqf: cutText ["","BLACK OUT",4]; My onPlayerRespawn.sqf: cutText ["","BLACK IN",2]; [player, [missionNamespace, "Var_SavedInventory"]] call BIS_fnc_loadInventory; So I'd like to make something like "You were killed by <killer> with a <killer_weapon>." in cutText when player is killed. I tried to edit one script and used it in onPlayerKilled.sqf but it does not work so it must be totally wrong edited... KAI_fnc_killedInfo = { _killerName = name (_this select 0); _weaponName = getText (configFile >> "cfgWeapons" >> currentWeapon (_this select 0) >> "displayname"); cutText format [You were killed by %1 with a %2", "BLACK OUT", _killerName, _weaponName]; }; { _id = _x addMPEventHandler ["MPKilled", { _nul = _this call KAI_fnc_killedInfo; }]; } foreach allUnits; Any ideas plese?