OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll 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".
;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 ???
-
Well, haven't tried it but, "6Rnd_Grenade_Camel" is not a weapon, it is merely a magazine.
The weapon is "CamelGrenades".
Planck
-
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:
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
-
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.
-
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