Home   Help Search Login Register  

Author Topic: CamelGrenades  (Read 1222 times)

0 Members and 1 Guest are viewing this topic.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
CamelGrenades
« on: 26 Dec 2007, 09:00:15 »
Hi does anybody know how to make a Camel drop grenades? I have a Camel E named EP1 & in a trigger i've grouped it to i have - this exec "Bombrun1.sqs".

Quote
;Bombrun1.sqs
EP1 selectWeapon "6Rnd_Grenade_Camel"
~1
EP1 fire "CamelGrenades";
~3
EP1 fire "CamelGrenades";
~3
EP1 fire "CamelGrenades";
~3
EP1 fire "CamelGrenades";
~3
EP1 fire "CamelGrenades";
~3
EP1 fire "CamelGrenades";
exit

Trigger is activating, this i know, as i've put a cresendo sound in it. But camel is not dropping nades, & no error messages appearin.
Note: i've tested exact same script with the AV8B and the BombLauncher - with success ???
 

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: CamelGrenades
« Reply #1 on: 26 Dec 2007, 18:02:58 »
Well, haven't tried it but, "6Rnd_Grenade_Camel" is not a weapon, it is merely a magazine.

The weapon is "CamelGrenades".


Planck
I know a little about a lot, and a lot about a little.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: CamelGrenades
« Reply #2 on: 27 Dec 2007, 07:38:05 »
Yes i realise that, but this is what it says to do in the BIS CommandRef  ???  i also realise that it stipulates to use the muzzle name, thing is - vehicle weapons don't have muzzle names? Only Weapon, Magazine & Ammo class names, unless of course someone can hopefully prove me wrong  :no:

Quote
selectWeapon
From Bohemia Interactive Community
Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax. 
 
Click on the images for descriptions

Introduced in

Game:Operation Flashpoint
Version:1.27

Description

Description:Selects the given weapon. Note that you have to input the muzzle and not the weapon name. Fortunately in most cases both names are the same. But check.

For muzzle names see cfgWeapons.

Syntax

Syntax: Unit selectWeapon "muzzleName"
Parameters:muzzle: String
Return Value: Nothing

Examples
Example 1:_soldier1 selectWeapon

http://community.bistudio.com/wiki/selectWeapon
« Last Edit: 27 Dec 2007, 07:47:16 by Carroll »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: CamelGrenades
« Reply #3 on: 28 Dec 2007, 15:31:41 »
Only weapons with multiple muzzles (like rifles with grenade launchers) have defined muzzle names. If a weapon doesn't have multiple defined muzzle names in the COMREF, then the name of the weapon can be used as the muzzle.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: CamelGrenades
« Reply #4 on: 29 Dec 2007, 03:02:32 »
Well i've tried numerous ways of getting the Camel E to fire it's grenades (drop them), but cannot do it. I can easily make the AV8B & Su34 fire their weapons, but alas the Camel no such success. Bringing me to the conclusion that the Camel E command - nameOfCamel fire "CamelGrenades" simply does not work, or that the craft is bugged  :weeping:

Would dearly love someone else to verify if this is a bug or not