Search the Community
Showing results for tags 'cameras'.
Found 1 result
Moldisocks posted a topic in ARMA 3 - MISSION EDITING & SCRIPTINGHey, i am making a mission where i want a menu to be displayed over the top of a specific camera and camera angle, the menu will allow the player to select their desired spawn point and then click spawn (image of menu below). The menu and the camera angle scripts are wokring perfectly (for what i need them for), but when i press spawn, the player is moved to the designated spawn area, but the camera stays in roughly the same position (i say roughly, because for some reason it seems to change FOV and move slightly down). The way the code works is explained further down in this post. The menu and the camera angle are made by calling menuInit.sqf when the player is initialised (so player will see this menu and camera as soon as they enter server). The ListBox is populated using the above code aswell. The while do loop in the above loop will call mld_fnc_spawnMenuCamera constantly as long as menu is open, so that i will check which check box is selected (just realised while writing this that it is very inefficeint way of doing this, and i realised that during testing i had made 1786345 cameras XD, but i decided to keep this code in here anyway as a place holder). Once the player selects the Spawn button a function called fn_spawnPlayer.sqf is called: this function should move the player's unit to the designated point, close the menu and destory the camera. This function was supposed to do those things and return control on the player's unit back to the unit and then change the camera to the player's unit (basically switching the camera back to the unit). destroyCam is one of the main reasons as to why i started this topic. I using destroy camera the best way to get rid of the menu's camera and return to the player's POV (and give controls back to the player. If this is not how you would do it at all please suggest a better way of doing it. Thanks