Author Topic: [SOLVED] SelectWeapon using GL  (Read 486 times)

0 Members and 1 Guest are viewing this topic.

Offline Dajan

  • Members
  • *
[SOLVED] SelectWeapon using GL
« on: 06 Mar 2009, 16:44:57 »
Hey guys, having scripting probs here:

Giving units a specific loadout via trigger, I've written a script that adds mags & weapon. With standard bullet-firing weapons UNIT selectWeapon GUN works fine;
with a GL (as in m16a2gl) however, the inserted weapon remains unselected.

It's a minor niggle, but I dislike having to scroll weapons the moment a script loads - any thoughts on the correct line I should be using please.


OK, hold the N00B responses! Despite looking through every copy of the COMREF that I had and missing it, I found the answer on here. Laugh now and call me names when I'm gone.


As suggested - For grenade launcher-equipped rifles (and I anything with multiple muzzles I think) code should be

Code: [Select]
UNIT selectweapon MUZZLENAME
as detailed
« Last Edit: 07 Mar 2009, 20:32:01 by Dajan »

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: SelectWeapon using GL
« Reply #1 on: 06 Mar 2009, 17:47:41 »
No name calling bro!  That's one of the things that sets this site apart.

How about posting the solution or link to other thread that has the solution.  That way the next guy that reads your thread title can find the solution.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...