Jump to content

Michael Marsh

Member
  • Content Count

    9
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Michael Marsh

  • Rank
    Private

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, Is it possible to use remote exec to display dynamic text on a target PC initiated from the server? What would be the correct syntax? [parseText format ["<t align='CENTER' font='PuristaBold' size='4'><img size='6' color='000000' image='%1' shadow='2'/> + 2</t>",mymoneyimage ], true, nil, 2, 0.5, 0] remoteExec ["BIS_fnc_textTiles", _killer]; The above code only shows to the host on a player hosted game. On dedicated it does not show at all. the target PC variable "is _killer" is taken from entitykilled event handler.
  2. Michael Marsh

    Add all player UIDs to array

    Thankyou. allplayers apply { getPlayerUID _x}
  3. Hi, I'm working on a multiplayer mission, where things like score, cash etc are saved to a clients profile space. This works very well, but I would like to have all the data saved on the server profile space instead. But I am having a problem getting all player UIDs into a new array. {getPlayerUID _x} foreach allplayers, just gives me the last result and not an array of UIDs.
  4. Hi, I realise it's an old thread, however it may help others out. I had exactly the same problem in my mission. Every time I crashed and died in a helicopter, I would get "cannot connect to the positioning system" error. This only ever happens with the helicopter. Anyway the workaround is to add a spectator screen (with values all false if you wish, so it makes no difference and just fixes the issue) add to onplayerkilled.sqf : ["Initialize", [ player, [], false,false,false,false,false,false,false,false,false]] call BIS_fnc_EGSpectator; add to onplayerrespawn. sqf : ["Terminate"] call BIS_fnc_EGSpectator; This has fixed the problem.
  5. Michael Marsh

    What's wrong with this respawn code?

    Hi thanks for your help, I have been trying everything all day and finally managed to make it work with markers instead. deleteMarker "respawn_east1"; _marker2 = createMarker ["respawn_west1", flagalpha];
  6. Michael Marsh

    What's wrong with this respawn code?

    That cannot work, since a respawn point has not yet been created until addrespawnposition has been run, so respawnalpha will always be 0.
  7. Hello, I am making a sector control game from scratch, and it works very well. I decided to add respawn points to capped sectors, which works when sector capped initially, but there is a problem with the removal when another team caps it. if (respawnalpha != 0) then {respawnalpha call BIS_fnc_removeRespawnPosition};respawnalpha = [west,alpha,"ALPHA"] call BIS_fnc_addRespawnPosition}; if (respawnalpha != 0) then {respawnalpha call BIS_fnc_removeRespawnPosition};respawnalpha = [east,alpha,"ALPHA"] call BIS_fnc_addRespawnPosition}; The above code, checks to see if the spawn point exists, if not then it creates it (which works fine). If it is already created it then should remove it, this is the bit not working. I get the error expected number, string, array not a file and the original respawn point remains. If anyone could help I would be grateful.
  8. Michael Marsh

    Find highest kill count player

    Wow! Thank you. That was exactly what I needed.
  9. Hello, Could someone please help me to retrieve the person at the top of the scoreboard, or the player who has the most kills? _myscores = getPlayerScores player; _myscore = _myscores # 0; This gives me my own personal kills, but I would like to know who has the highest so I can display their name and kills. I have tried messing around with this snippet of code, but I am stuck. I just need the rest. _players = allPlayers apply {[getPlayerScores _x param [5, 0], _x]};
×