Jump to content

spencer42

Aerial Photography Cameras

Recommended Posts

Hi guys, I'm an experienced coder and mission editor with ~1000 hours in Arma games, mostly in the editors, but I have no experience whatsoever with the camera functions. However I have a plan and I'm pretty sure it's easily doable, but after playing around with cameras for a while I decided just to ask someone who knows more and get this done.

 

So my idea is this: I'm creating a large-scale ww2 mission and need to add methods of intel for the player, since enemies are randomised so there could be one squad defending a town, there could be 2 tank platoons. The most common recon method in ww2 was aerial recon. So, I would like a radio command to open a script which sets "OnMapClick" to place a static, black and white camera above the map click. A single image if possible, but a normal camera would also work fine.

 

Even if someone just pointed me in the right direction or gave me a basic camera spawn then I'd be very grateful! Thank you in advance. :)

Share this post


Link to post
Share on other sites

This will give you a basic top down view of the area clicked.

You'd need to find a way to remove the cam view upon user input, black and white can be achieved with ppeffects.

 

GOM_fnc_satCam = {

	params ["_units","_pos"];

	_altitude = 300;
	_spawnPos = _pos;
	_spawnPos set [2,_altitude];
	_cam = "camera" camCreate (_spawnPos);
	_cam cameraEffect ["internal","back"];
	_cam setVectorUp [0,0.99,0.01];
	_cam camCommit 0;
	_cam switchCamera "internal";
	openMap [false,false];

};

addMissionEventHandler ["MapSingleClick",{_this call GOM_fnc_satCam}];

 

Cheers

  • Like 1

Share this post


Link to post
Share on other sites

Thanks a lot for your help man, making good progress. However I'm struggling on getting out of the camera.....

 

This is what everyone seems to be using but alas it doesn't work for me. Something happens, as it flashes and I have character interaction back, but the screen stays on the floating image, even showing in front of the Escape menu. Any thoughts, anyone?

_cam cameraEffect ["terminate","back"];
camDestroy _cam;

 

Share this post


Link to post
Share on other sites
  On 1/25/2018 at 1:41 PM, spencer42 said:

Thanks a lot for your help man, making good progress. However I'm struggling on getting out of the camera.....

 

This is what everyone seems to be using but alas it doesn't work for me. Something happens, as it flashes and I have character interaction back, but the screen stays on the floating image, even showing in front of the Escape menu. Any thoughts, anyone?

_cam cameraEffect ["terminate","back"];
camDestroy _cam;

 

 

You need to switch the camera back "into" the player, like this:

_cam cameraEffect ["terminate","back"];
camDestroy _cam;
player switchCamera "internal";

Cheers

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×