Home   Help Search Login Register  

Author Topic: Help with cutscene  (Read 1465 times)

0 Members and 1 Guest are viewing this topic.

Offline UH60MG

  • Members
  • *
Help with cutscene
« on: 10 Jan 2009, 05:11:06 »
I'm making a cutscene where an AA soldier fires at a helicopter.

How do I get a unit to select his AA launcher and stay in that mode, not switching back to guns but also have him track a moving target?
« Last Edit: 10 Jan 2009, 05:17:10 by UH60MG »

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Help with cutscene
« Reply #1 on: 10 Jan 2009, 06:06:58 »
You could try using selectWeapon to select the AA launcher, then disable anims with the
Code: [Select]
myUnit disableAI "ANIM"
Alternatively, you could try finding the animation to select an AA launcher, use playmove to get the unit into that animation state, and then disable their anims again.
"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

Offline Ext3rmin4tor

  • Members
  • *
Re: Help with cutscene
« Reply #2 on: 10 Jan 2009, 12:32:38 »
Try this:

Code: [Select]
_soldier reveal _chopper
_soldier selectWeapon "Strela"
_soldier doTarget _chopper
_soldier doFire _chopper

of course replace _soldier and _chopper with the names you used for those units. Besides if your AA soldier has a Stinger, replace "Strela" with "Stinger".

The command reveal is used to make sure the unit knows the exact position of the chopper to target it.
« Last Edit: 10 Jan 2009, 12:34:18 by Ext3rmin4tor »
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Help with cutscene
« Reply #3 on: 10 Jan 2009, 18:30:36 »
That would also make the soldier fire the weapon, which I don't think was necessarily the goal of UH60MG. That might work though, if you remove the missile from their inventory, or something of the sort.
"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

Offline Ext3rmin4tor

  • Members
  • *
Re: Help with cutscene
« Reply #4 on: 11 Jan 2009, 18:08:38 »
He said he was making a cutscene where an AA soldier fires at a chopper, so I thought he actually wanted to fire it. Well he just needs to setCombatMode to "blue" and not to use the doFire command.
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Help with cutscene
« Reply #5 on: 11 Jan 2009, 20:02:43 »
Sorry, was basing my reply off of the second part of his post...

Will that work by just setting the combat mode to blue, just curious? I can't test it right now, but I do know that in game, if I command my AA people to hold fire (3-2) and they see a chopper, sometimes they will fire anyway. :P
"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