Forum Jump :

Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 21
In-game name: Drew

 
#1 Posted at 2012-08-23 07:33        
     
Howdy, I have had a bit of a play around with cinematics in Arma 2 and have come up cluelesss as to how to acheive my goal. I want the player to start the mission in cinematic looking at your commander, walk outside (or take steps forward) and look at a jet going past, then look at a helicopter going past, then giving the player their input back. I know you can make the unit look at certain objects but have had no luck with the rest. Appreciate any help.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]

Author Message


Posts: 427
Rank:


Level: Member

Country: it
Location: In ArmA edit when I can
Occupation: Security officer
Age: 47
In-game name: maxjoiner

 
#2 Posted at 2012-08-23 09:01        
     
This is a basic cam script, try and study it.
With this script You can do all that You want.

With the tool armaedit(you can found it in download section):
----------------------------------------------------------
Titlecut [" ", "black in",3];// black in effect
showCinemaBorder false;// cinema border (true = show border)
_cam = "camera" camCreate (position cam1);
//cam position, in edit create an invisible helipad called cam1
_cam cameraEffect ["external", "Back"];
_cam camSetTarget target;// target = the name of the cam target
_cam camCommit 5;
sleep 10;// wait in seconds to end camera
Titlecut [" ", "black in",3];// black in effect
_cam cameraeffect ["terminate", "back"];
camDestroy _cam;// end camera;
if (true) exitwith {};// to esc from script otherwise you can continue with another camera
------------------------------------------------------
Save it in your mission folder like "camscript.sqf"

To recall it in edit from trigger,waypoint or game logic:

nul = [] execVM "camscript.sqf";


Advertisement


Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 21
In-game name: Drew

 
#3 Posted at 2012-08-23 12:22        
     
To confirm, if I use this software, when I publish a campaign, the player won't have to download anything special to play it? This program just creates scripts?

Added 42 minutes later:

Very helpful, works a treat, did some minor tweaking and voila.

This post was edited by Dutchy (2012-08-23 13:04, ago)

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]

Author Message


Posts: 427
Rank:


Level: Member

Country: it
Location: In ArmA edit when I can
Occupation: Security officer
Age: 47
In-game name: maxjoiner

 
#4 Posted at 2012-08-23 13:49        
     
I confirm You, Armaedit creates scripts and other interesting things without to download anything.


Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 21
In-game name: Drew

 
#5 Posted at 2012-08-23 14:15        
     
Cool, much appreciated.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]

Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 43
In-game name: kylania

 
#6 Posted at 2012-08-23 15:50        
     
To be more specific ArmAEdit is just a text editor/IDE for ArmAScript. While there are a few wizards you as the mission author still need to write the scripts and save them in the proper place with the editor version of your mission.


Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 21
In-game name: Drew

 
#7 Posted at 2012-08-24 11:41        
     
I have been playing around with it and have got a script that is close to what I want but not exactly right. I want the camera to be position in front of the unit's face (So you don't have to look at the back of his head and it seems more realistic) Right now, it for some reason, looks in a (seemingly) random direction. I want the player to go to cinematic, look at a jet going past, then helicopters, and then destroy the camera. Here is a copy of the script I am using (Based off of maxjoiner's code):
Titlecut [" ", "black in",3];// black in effect
 showCinemaBorder false;// cinema border (true = show border)
 _cam = "camera" camCreate [(position unit4 select 0),(position unit4 select 1),1.8];
 //cam position, in edit create an invisible helipad called cam1
 _cam cameraEffect ["external", "Back"];
 _cam camSetTarget plane3;// target = the name of the cam target
_cam camsetrelpos [0,0.2,1.7]
 _cam camCommit 5;
 sleep 10;// wait in seconds to end camera
 Titlecut [" ", "black in",3];// black in effect
 _cam cameraeffect ["terminate", "back"];
 camDestroy _cam;// end camera;
 if (true) exitwith {};// to esc from script otherwise you can continue with another camera
Any help with this would be appreciated.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]