18 lines
634 B
Plaintext
18 lines
634 B
Plaintext
/*
|
|
File: fn_spawnPointSelected.sqf
|
|
Author: Bryan "Tonic" Boardwine
|
|
|
|
Description:
|
|
Sorts out the spawn point selected and does a map zoom.
|
|
*/
|
|
disableSerialization;
|
|
private ["_control","_selection","_spCfg","_sp"];
|
|
_control = [_this,0,controlNull,[controlNull]] call BIS_fnc_param;
|
|
_selection = [_this,1,0,[0]] call BIS_fnc_param;
|
|
|
|
_spCfg = [playerSide] call life_fnc_spawnPointCfg;
|
|
_sp = _spCfg select _selection;
|
|
[((findDisplay 38500) displayCtrl 38502),1,0.1,getMarkerPos (_sp select 0)] call life_fnc_setMapPosition;
|
|
life_spawn_point = _sp;
|
|
|
|
ctrlSetText[38501,format ["%2: %1",_sp select 1,localize "STR_Spawn_CSP"]]; |