OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: crisbal on 18 Apr 2011, 13:01:31

Title: Weapon scripting
Post by: crisbal 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
Title: Re: Weapon scripting
Post by: Walter_E_Kurtz on 19 Apr 2011, 02:04:40
BAS_soflam - the same for weapons and magazines.
Title: Re: Weapon scripting
Post by: mr_book.PXS.Pvt 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