Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Weapon scripting  (Read 2053 times)

0 Members and 1 Guest are viewing this topic.

Offline crisbal

  • Members
  • *
Weapon scripting
« on: 18 Apr 2011, 13:01:31 »
How can I know the scripting name of the BAS "AN/PQ-1" Laser Designator ? ...I can't find it anywhere. ¿Someone got it?? Thanks

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