Hallo,
hier ein kleines und schnelles Tutorial zu einem kleinen Intro für euren Altis Life Server oder für normale Missionen.
Hier ein kleines Video zum Anfang.
Um zur Tanoa Version zu springen, klicke hier.
Schritt 1
fügt die Datai in euren ordern Altis_Life.Altis/core/functions die datai fn_introcam.sqf ein.
Die Datai ist im Anhang oder hier als Quellcode
Code
#include "..\..\script_macros.hpp"
/*
File: fn_introcam.sqf
Author: Tim "Ninchen"
Description:
Introcam location and text
*/
//First text
_text1up= "Altis Life";
_text1down= "Henne";
//Second text
_text2up= "Script by";
_text2down= "Ninchen";
//Third text
_text3up= "Viel Spaß";
_text3down= "Jetzt geht es los";
//script please don't change if u dont have a clue
_camera = "camera" camcreate [3695.91,3610.04,2.00];
_camera cameraeffect ["internal","back"];
_any =[[[_text1up,"align = 'center' size = '0.7' font='PuristaBold'"],[" ","align = 'center' size = '0.7'","#aaaaaa"],["","<br/>"],[_text1down,"align = 'center' size = '0.7'"]]] remoteExec ["BIS_fnc_typeText2"];
_camera camPrepareTarget [24585.38,113551.39,-36950.11];
_camera camPreparePos [21854.19,20698.31,74.96];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
waitUntil {camCommitted _camera};
_camera camPrepareTarget [110992.56,2561.50,-41312.07];
_camera camPreparePos [21854.24,21039.36,43.33];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 10;
waitUntil {camCommitted _camera};
_camera camPrepareTarget [-82008.41,16277.22,-23988.37];
_camera camPreparePos [14534.28,6178.24,37.27];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
waitUntil {camCommitted _camera};
_any =[[[_text2up,"align = 'center' size = '0.7' font='PuristaBold'"],[" ","align = 'center' size = '0.7'","#aaaaaa"],["","<br/>"],[_text2down,"align = 'center' size = '0.7'"]]] remoteExec ["BIS_fnc_typeText2"];
_camera camPrepareTarget [15267.02,105736.28,-9186.58];
_camera camPreparePos [14471.25,6165.36,3.99];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 10;
waitUntil {camCommitted _camera};
_camera camPrepareTarget [15875.54,105715.34,-9510.93];
_camera camPreparePos [14471.32,6181.23,2.98];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 2;
waitUntil {camCommitted _camera};
_camera camPrepareTarget [46176.39,-60342.42,-50009.56];
_camera camPreparePos [4541.44,15405.09,14.24];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 0;
waitUntil {camCommitted _camera};
_any =[[[_text3up,"align = 'center' size = '0.7' font='PuristaBold'"],[" ","align = 'center' size = '0.7'","#aaaaaa"],["","<br/>"],[_text3down,"align = 'center' size = '0.7'"]]] remoteExec ["BIS_fnc_typeText2"];
_camera camPrepareTarget [-75205.12,-28559.60,-40878.12];
_camera camPreparePos [4602.62,15402.43,71.75];
_camera camPrepareFOV 0.700;
_camera camCommitPrepared 10;
waitUntil {camCommitted _camera};
player cameraEffect ["terminate","back"];
camDestroy _camera;
Alles anzeigen
Schritt 2:
nun müsst ihr in der Altis_Life.Altis/Functions.hpp folgendes bei class Functions(um zeile 175) hinzufügen.
Schritt 3:
Nun ändert in der Altis_Life.Altis/dialog/function/fn_spawnConfirm.sqf
zu
Code
[] spawn {
cutText ["","BLACK IN"];
if(life_firstSpawn) then {
private["_handle"];
_handle = [] spawn life_fnc_IntroCam;
waitUntil {scriptDone _handle};
life_firstSpawn = false;
};
};
Alles anzeigen
Schritt 3: optinal
fügt in der Altis_life.Altis/initPlayerLocal.sqf folgendes unten ein: