Home   Help Search Login Register  

Author Topic: Unit fire ["muzzle","mode","magazine"] any one have some experience?  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

Void-DK

  • Guest
Been trying to find some more info on this through search and also by pestering people on mirc  - but to no avail, so im hoping some blessed soul might be sitting in with the information im after  :)

I might aswell start out by saying that im a noob, but in trying to learn the system, Ive been fooling around a bit with a few small missions in flashpoint,  i still havent looked into scripting much(guess its time soon) - but rather have been trying to create semi scripted happenings using game logics and waypoints in the mission editor.

One of the things ive been looking into and trying to use is the fire command - seems to be the perfect thing to create some neat little effects like APCs driving forward firing their cannons in support(makes my peepee go peekin) - small features that helps to add a bit of extra feel to the missions around you, you know the drill, but ive run into a kinda vital problem,

I cant get the unit fire command to work with most vehicles - the only 2 examples ive been able to find on it is the unit fire ["browning","browning"] - aka weapon/ammo, and that works fine for infantry and simple vehicles with one weapon(like the m113) - but doesnt seem to be working with more complicated vehicles with more weapons(tried with selectweapon also).

looking at the comref - it claims it to be unit fire ["muzzle","mode","magazine"], or ["muzzle", "mode"] - and fits well with the other example ive found on here, flareman fire ["m203muzzle","flare","flare"] so im kinda guessing thats whats needed to use the command with multiple weapons. (i asume "throw" is a muzzle)

Problem is, what and where can i get the muzzle names on vehicles? - is there a common name for em? - or am i completely off track ??? - sure hope someout out there have some experience with this, for both my own sanitys sake and for my keyboards wellbeing  ;D

Hope my question made sense,

Thanks in advance,


-Tet.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
There are two versions of the fire command.  (Check the comref.)    You are discussing the sophisticated version.... try the simple one:  for example

loon1 fire "flare"

which works fine.   As long as he has a flare, obviously.   Check the weapons and ammo listings in Tutorials - References for clues on what to try for ammo etc.

Sorry I can't be more help.
Plenty of reviewed ArmA missions for you to play

Void-DK

  • Guest
Think i need to use the complicated one Macuba.

the unit fire "xxx" doesnt work on em atleast  :-\

Thanks,


-Tet

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Hey !

One  trick to find exactly what weapon/mode/muzzle you need is to use EventHandler "Fired".

Type this line in the init field of the unit whose weapon you want to figure out :


Code: [Select]
this addEventHandler ["fired",{hint format ["shooter : %1\nweapon : %2\nmuzzle : %3\nmode : %4\nammo : %5",_this select 0,_this select 1,_this select 2,_this select 3,_this select 4]}]
Preview the mission, and shoot... Here we go, the exact strings you'll have to use with the "Fire" command.



Ig.

Void-DK

  • Guest
Igor Drukov, you're my new hero  ;D

Thats exactly what i was looking for, Thank you very much!


/Cheers


-Tet
« Last Edit: 28 Jun 2004, 22:33:31 by Void-DK »