Example how you add location, into spectator locations tab.
This is location in map Altis, under water.
["AddLocation", ["loc1", "Location Name", "Location decription", "\A3\Ui_f\data\GUI\Rsc\RscDisplayArsenal\gps_ca.paa", [[15010,6850,-115], [0,0,1], [-0.5,-0.5,-0.3], [0,false]]]] call BIS_fnc_EGSpectator;
Adding location using alive player eye position and direction (not spectator view)
["AddLocation", ["loc2", "Location Name", "Location decription", "\A3\Ui_f\data\GUI\Rsc\RscDisplayArsenal\gps_ca.paa", [eyePos player, [0,0,1], eyeDirection player, [90,false]]]] call BIS_fnc_EGSpectator;
Using last override parameter, you can rotate simple way view direction, it will always look straight horizontally.
... , [90,true]]]] call BIS_fnc_EGSpectator;
When not enabling override and setting two previous array to zero, player view not change when teleport to the location.
... , [0,0,0], [0,0,0], [90,false]]]] call BIS_fnc_EGSpectator;
If you call ["GetLocations"] call BIS_fnc_EGSpectator;
you get list of all locations what have been added.
- But notice that, it have one extra parameter at the end. I have not found any useful for that. You may include that parameter in your scripting but it doesn't do anything.
[["loc3","Location Name","Location decription","\A3\Ui_f\data\GUI\Rsc\RscDisplayArsenal\gps_ca.paa",[[15010,6850,-115],[0,0,1],[-0.5,-0.5,-0.3],[0,false]],[0,false]]]