Sonin Posted April 28, 2015 Report Share Posted April 28, 2015 is there a possibility to let players and their position on the map show? Link to comment Share on other sites More sharing options...
0 chrisa Posted April 28, 2015 Report Share Posted April 28, 2015 i like to know that 2 :D Link to comment Share on other sites More sharing options...
0 Jester Posted April 28, 2015 Report Share Posted April 28, 2015 I am looking for this too :) Link to comment Share on other sites More sharing options...
0 horbin Posted April 29, 2015 Report Share Posted April 29, 2015 //TrackPlayer.sqf // Horbin // 4/28/2015 // Inputs: player object // Generates a map symbol that follows the player // Symbol is updated every five seconds. private ["_player","_markerName","_mkr"]; _player = _this select 0; _markerName = format ["TrackPlayer_%1",_group]; _mkr = createMarker [_markerName, [0,0]]; //["Markers",_markerName] call FuMS_fnc_HC_Util_HC_AddObject; _markerName setMarkerColor "ColorRed"; _markerName setMarkerShape "ICON"; // can add code to get the players name and add that info to the marker here. [_player, _markerName] spawn { private ["_player","_mkr","_symbol","_veh"]; _player = _this select 0; _mkr = _this select 1; while {alive _player} do { _veh = vehicle (_player); if (_veh isKindOf "Man") then {_symbol = "o_inf";}; if (_veh isKindOf "Tank") then {_symbol = "o_armor";}; if (_veh isKindOf "Car") then {_symbol = "o_motor_inf";}; if (_veh isKindOf "Truck" or _veh isKindOf "Wheeled_APC") then {_symbol = "o_mech_inf";}; if (_veh isKindOf "Air") then {_symbol = "o_air";}; if (_veh isKindOf "Ship") then {_symbol = "o_naval";}; _mkr setMarkerType _symbol; _mkr setMarkerPos (getPos _player); sleep 5; }; // ["Markers",_mkr] call FuMS_fnc_HC_Util_HC_RemoveObject; deleteMarker _mkr; }; Above is a modified script from my FuMS mod. This script will generate a marker on the player based upon the vehicle type he is in. This script can be modified to grab the players name and add it to the marker if you wished. Just need to add a call to this script as part of the players init routine Ex: [_player] call TrackPlayer; Not tested on players, but it works great for tracking AI groups :) You will probably need to add some BE filters to account for markers too..... Link to comment Share on other sites More sharing options...
0 Sonin Posted April 29, 2015 Author Report Share Posted April 29, 2015 The Script doesnt work! I need a Script who is showing the Player anytime not only in vehicles. Link to comment Share on other sites More sharing options...
0 Silens Posted April 29, 2015 Report Share Posted April 29, 2015 Try this in init.sqf if(hasInterface)then{ [] spawn { waitUntil{uiSleep 0.2;!isNil "EPOCH_playerEnergyMax"};//wait for player to load _playerPos = createMarkerLocal ["PlayerPOS", position player];//create marker "PlayerPOS" setMarkerTextLocal "You"; "PlayerPOS" setMarkerTypeLocal "hd_destroy"; "PlayerPOS" setMarkerColorLocal "ColorRed"; while{true}do{ waitUntil {uiSleep 0.2;visibleMap};//update marker only while map is open "PlayerPOS" setMarkerPosLocal position player; }; }; }; BE filters scripts.txt 7 setMarker !="PlayerPOS" 7 createMarker !="PlayerPOS" Link to comment Share on other sites More sharing options...
0 PAR4NA Posted April 30, 2015 Report Share Posted April 30, 2015 Can add the group? Link to comment Share on other sites More sharing options...
Question
Sonin
is there a possibility to let players and their position on the map show?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now