Advertisement
Veticus

Arma 3* Weapon Finder {Public}

May 16th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. // Created by νєтι¢υѕ. This is a public source to anyone who wishes to have it
  2. // This script allows you to find out the classname of any Weapon/Magazine/Attachment the the player is carrying.
  3. //------------------------------------------------------------------------------------------------------------------------------
  4. // First create a .sqf file called "weaponfinder.sqf". And place the script below into it.
  5. //------------------------------------------------------------------------------------------------------------------------------
  6. if (alive player) then {
  7. _Weapon = weapons player;
  8. _Mag = magazines player;
  9. _WeaponsItem = primaryWeaponItems player;
  10. hintSilent parseText format ["<t color='#2E9AFE' size='1.3'>Weapon: </t><t color='#00FF00' size='1.2'><br/>%1</t><br/><t color='#2E9AFE' size='1.3'>Magazines: </t><br/><t color='#FF0000' size='1.2'>%2</t><br/><t color='#2E9AFE' size='1.3'>Attachments: </t><br/><t color='#FF00FF' size='1.2'>%3</t>", _Weapon, _Mag, _WeaponsItem];
  11. };
  12. //------------------------------------------------------------------------------------------------------------------------------
  13. // This is what you add to you "init.sqf" or whatever addAction array to execute the script above.
  14. //------------------------------------------------------------------------------------------------------------------------------
  15. player addAction ["<t size='1'>[Find Weapon Info]</t>", "weaponfinder.sqf", [], 1, false, true, 'true'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement