So I was going through BIS's scripts and stuff and came across something very interesting, and so I thought I'd see if it interests you guys.
Operation Arrowhead includes a new set of of functions called UnitCapture & UnitPlay. From what I've gathered, they basically allow you to capture the movement data (and there's one for weapon firing data) of a unit, and then play it back exactly the same way every time.
It's how BIS pulled off those seemingly impossible (for AI at least) littlebird insertions in the campaign. In short, all you have to do is call CaptureUnit on a vehicle (it appears to work on people to), drive/fly it around as you see fit, and it will copy the movement data to the clipboard. Then, simply paste the data in a script, call the PlayUnit function with this data and it will play back the same movement you just recorded.
I imagine this can be used to some pretty substantial potential. Ex: getting AI to land aircraft on buildings/carriers, flying/driving through objects no AI could possibly pull off, and creating some very complex cinematic scenes. Now I haven't got a chance to actually try it yet, but judging from it's use in the campaign it seems to work very nicely (at least on aircraft).
You can find some documentation in the scripts themselves. They're in the OA modules pbo, under 'scenes'. Hope this interests some of you mission (and movie) makers.
HOME 
Reply With Quote






