Posted: . At: 11:56 AM. This was 1 year ago. Post ID: 17560
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Another very useful Arma 3 tip. How to teleport to a certain place.


It is straightforward in Arma 3 to teleport to a particular location. Firstly, place this code in the init of a noticeboard object.

this addAction ["Teleport to the FOB.", {player setPosASL (getPosASL rule1)}];

This is the code to teleport a player.

Then place an object named “rule1” at the location such as an oil spill object, which will be the object the player will be teleported to. This works very well to teleport to the carrier or on top of a military tower. This is perfect.

Put this code in the init of a wall to make it a simple object and reduce the impact on framerate caused by having a lot of wall objects.

[this,true] call BIS_fnc_replaceWithSimpleObject;

This is most effective in multiplayer missions.

To use the Data Terminal object in a mission, put this code in the init.

[this,3] call BIS_fnc_dataTerminalAnimate;

This code will extend the satellite dish and open it up.

Play random music at the start of the mission and then print mission instructions on gameplay when the music finishes.

initPlayerLocal.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//--- Play random music
_track = ["AmbientTrack01a_F_Tacops","AmbientTrack01b_F_Tacops","AmbientTrack02a_F_Tacops","AmbientTrack02b_F_Tacops","AmbientTrack03a_F_Tacops","AmbientTrack03b_F_Tacops","AmbientTrack04a_F_Tacops","AmbientTrack04b_F_Tacops","EventTrack01a_F_Tacops","Wasteland","Fallout","Defcon","MAD","SkyNet","Track08_Night_ambient","Track07_ActionDark","EventTrack01_F_Orange","ambienttrack01_f_exp","ambienttrack01a_f_exp","ambienttrack01b_f_exp","ambienttrack02_f_exp","ambienttrack02a_f_exp","ambienttrack02b_f_exp","ambienttrack02c_f_exp","ambienttrack02d_f_exp","leadtrack01_f_exp","leadtrack01a_f_exp","leadtrack01b_f_exp","leadtrack01c_f_exp","leadtrack02_f_exp","leadtrack03_f_exp","leadtrack04_f_exp"] call BIS_fnc_selectRandom;
 
6 fademusic 0.3;
//--- Play memory music
playmusic _track;
addmusiceventhandler [
	"MusicStop", {
		[str(worldName) , str(date select 1) + "." + str(date select 2) + "." + str(date select 0), str(groupId (group player))] spawn BIS_fnc_infoText;
		[WEST,"HQ"] sideChat format ["Hello %1, welcome to the server. You are in group: %2. You are playing: %3.", name player, str(groupId (group player)),str productVersion];
 
		"Instructions" hintC [
			parseText "Press Control + Windows key for player options.",
			parseText "Press Windows key when aiming at an object to interact. You need to be close enough to it.",
			parseText "You can carry objects if they are light enough. Press the Windows key when close to the object and choose the carry option.",
			parseText "Make sure you have cover between you and an exploding grenade.",
			parseText "Switch Titan launcher to thermal mode and hold TAB to lock. It uses top-down attack when the missile is in flight.",
			parseText "Crates can be loaded into a vehicle, then unloaded at the destination. Press the Windows key on the crate and then select <b>load in</b> when next to a vehicle.",
			parseText "Press Shift-~ to point at an enemy and highlight it for your squad.",
			parseText "Press Control-Shift-T to wipe your goggles."
		];
		hintC_arr_EH = findDisplay 72 displayAddEventHandler ["unload", {
			0 = _this spawn {
				_this select 0 displayRemoveEventHandler ["unload", hintC_arr_EH];
				hintSilent "";
			};
		}];
	}
];

This is a very useful way to start a mission.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.