Home   Help Search Login Register  

Advertisement

Author Topic: ARMA II need a little help with interactive cutscene  (Read 1633 times)

0 Members and 1 Guest are viewing this topic.

Offline Rytuklis

  • Members
  • *
hey, it's been a while!
Guys, how do I make a cutscene like the ARMA II Harvest Red intro? Where the player is controlled by the AI? How do I switch player to an another soldier and how do I hide the previous soldier he was in?

Also

How do I make player for example approach a civilian, then suddenly loose control of his soldier, there is a conversation sequence, and then the player regains the control of his player?

Offline savedbygrace

  • Mission Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: ARMA II need a little help with interactive cutscene
« Reply #1 on: 05 May 2014, 00:54:25 »
Have a copy of the player unit somewhere on the map(same class). Use getdir to get the current azimuth of the player unit, and getpos to grab his position. You can use a fade or just simply create the camera and add a new angle to make the switch with setdir and setpos of the AI(copy) unit and the player unit, setting the player unit where the AI was and the AI where the player was. Play out your cinema with audio, camera angles and AI manipulation. When you're done, just setpos the AI back to its start position and the player unit back to where he was before the scene.

You may have to grab the current primary weapon class and/or backpack class of the player and add it to the AI before the scene if there is a chance the player could alter his loadout during the mission. You won't need ammo or anything else since it will just be aesthetic.

To detect a players distance from a specific unit(civy) just use distance command in a slow loop script or trigger if you prefer, with a 3 meter condition......player distance civy <=3 : then execute the script or trigger.
« Last Edit: 05 May 2014, 00:56:19 by savedbygrace »

Offline Rytuklis

  • Members
  • *
Re: ARMA II need a little help with interactive cutscene
« Reply #2 on: 16 May 2014, 16:04:50 »
I'm sorry but I didn't understand.. This explanation is way too complicated to me, I never was too god with this whole getpos dir and so on thing..

Offline Rytuklis

  • Members
  • *
Re: ARMA II need a little help with interactive cutscene
« Reply #3 on: 22 May 2014, 15:12:24 »
Okay, I managed to get the locations of these two units swapped, however, I still don't get how to set my camera to the position which would look first person like?

Offline savedbygrace

  • Mission Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: ARMA II need a little help with interactive cutscene
« Reply #4 on: 01 Jul 2014, 02:10:47 »
The first person view is a camera in and of itself. You will have to destroy your already created camera and then use the switchcamera command on the unit you would like to view first person through. When done with that scene, you'll need to create another camera to continue the cinema.