Home   Help Search Login Register  

Author Topic: Weapon scripting  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Offline crisbal

  • Members
  • *
Weapon scripting
« on: 18 Apr 2011, 13:01:31 »

Walter_E_Kurtz

  • Guest
Re: Weapon scripting
« Reply #1 on: 19 Apr 2011, 02:04:40 »
BAS_soflam - the same for weapons and magazines.

Offline mr_book.PXS.Pvt

  • Members
  • *
Re: Weapon scripting
« Reply #2 on: 09 May 2011, 07:50:39 »
Hi crisbal,
whenever you want to know the correct name of a weapon, try this:
Create a trigger, activation Radio Alpha, repeatedly, on activation:
Code: [Select]
pweapons=weapons player; hint format ["%1", pweapons];
That way, all weapons (rifle, pistol, bino, nvg, laser designator) will be displayed with their exact names.
And before you ask, yes, the very same can be done with magazines:
Code: [Select]
pmagazines=magazines player; hint format ["%1", pmagazines];
Huh, is there a way in OFP to get weapon names directly out of the game and into a script? I mean, in ArmA 2 they introduced this nice command, copytoclipboard. I wonder how to do it in this old game here?
Anyway, I hope this helps.
Regards,
mr_book