Home   Help Search Login Register  

Author Topic: Please help!  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

cameronmc

  • Guest
Please help!
« on: 19 Nov 2003, 07:31:05 »
OK excellent men of OFPEC - need your assistance, please, just a few questions to add some spitshine to my in-the-pipes campaign. (NOTE: I only have 1.46! Please, can you make sure any solutions work for this old variant?)

1. How, when I add a weapon to another AI unit, not in my squad, can I get this unit to load and fire his gun?
ie, I tried to get a normal Black Op to have an XMS, but he just stands and looks, despite having a good ammo loadout.

2. How can I get a unit in 1.46 to throw a smoke grenade? Direction doesn't matter - but I think the code snippet in the script depot is for Resistance - and thus doesn't work for me.

3. Is there any way to have a chopper keep the behaviour "aware," but keep his searchlight on? Or, safe, keeping his light on after seeing an enemy?

4. How do I get the animation "onchair" to work? Does there need to be a chair nearby/defined in the initialisation?

Many thanks, boys, hopefully you awesome dudes can help me out! (Btw, expect my first mission (No. 1 - A Bad Beginning) soon!)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Please help!
« Reply #1 on: 19 Nov 2003, 15:38:06 »
1.   Make sure you add at least one magazine before you add the weapon.   That way the weapon will be loaded at the start of the mission.


2.   Use the command fire.   There are two versions - check the command ref.   Experiment with something like

loon1 fire "smokegrenade"

Make sure he has one obviously.  ;D


4.   You need to use the right kind of chair, I think it's chairX but use the forum search function - this came up recently.


5.   Get Resy if you possibly can - it's worth it.
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Please help!
« Reply #2 on: 19 Nov 2003, 19:01:41 »
@2.
 to get the guy to fire, ya need to give him a name, say meFire.

then put this in a sensor (i.e. Trigger) or script activated by a trigger which says:
Code: [Select]
meFire Fire ["Throw","SmokeShell"]That should do it. If it doesn't, try removing the space between Fire & [.

@3.
If you want the helicopter to just fly by without firing, then set the copter's behaviour to careless. If you want em to fire back, you cant keep the searchlight on.

I take that back. Put him on aware, and try heloName Action["LIGHTON"]. That should do the trick. If not, sorry m8.

@4.
You havta put the bloke over the chair in the editor. If you try the setPos getPos thing, he starts off over air. There isn't any way to get em' to start over it otherwise.

Unless, LCD wants to counter that.

Cheers Tyger
:gunman:
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

cameronmc

  • Guest
Re:Please help!
« Reply #3 on: 20 Nov 2003, 07:12:50 »
Ah, ain't nothing like that fine support! Cheers, comrades - your assistance has been quite useful - if these solutions don't work - nothing will!

PROBLEM SOLVED!

Fanks again, men.  ;D