Comrades in Arms Discussion Board

Full Version: Cutscene
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm just wondering, what might be the easiest way to make a cutscene (Maybe intro), where somebody shoots a Chopper down? What kind of commands are there for this? I've tried to go through the scripting commands for Something like giving commands Aim and then Fire. (Found setTargetAge but no simple setTarget)
And yes I'm a complete beginner in scripting (and pretty much mission making) so if this sounds stupid, feel free to explain why! Big Grin

So there's a command "fire" that forces unit to fire his weapon in hand. Should work?
And now I found "aimPos" but can this be usef if firing with something like strela/Igla/stinger?
And I guess turretLockOn works only for tanks?
Hey Bubba,

Some commands that might help you are:

knowsabout  http://community.bistudio.com/wiki/knowsAbout
dotarget  http://community.bistudio.com/wiki/doTarget
dofire  http://community.bistudio.com/wiki/doFire

I hope this helps you. The wiki is a good scripting ref.
Yeah. I searched the BI WIKI for those! Thanks Zulu, those are propably the ones I'll need!

But me understands not how to use the "knowsabout" and what for?
Knowsabout lets one unit know about another unit.

unit 1 knowsabout unit2

Chain these all together like this:

unit 1 knowsabout unit2; unit1 dotarget unit2; unit1 dofire unit2
Allright, so it just makes sure that the AA gunner is aware of the chopper!? Ok, I guess I got it. Thanks A LOT!  Wink
(10-18-2010, 07:28 PM)Zulu1 link Wrote:Knowsabout lets one unit know about another unit.
No.

Reveal lets one unit know about another while knowsAbout checks how much one unit knows about another.
Ok, didn't have time to test these jet but thanks for correcting. I looked at the knowsabout and it said that it checks if someone know about something, but didn't wan't to argue since I don't know rats ass about this! Big Grin
I bow to the master. Reveal maybe be a better choice. The firing unit must be aware of the target unit if anything is going to happen.