Jump to content

T-Max

Member
  • Content Count

    6
  • Joined

  • Last visited

  • Medals

Posts posted by T-Max


  1. I continue that thread if nobody against :)

    I try to realize 1 script for several arrays contains different uids.

    Arrays in file uids.sqf and looks like

    _GatePlayers_nameOfGates = ["1","2","3","4","5","6"];

    where nameOfGates - is the name of doors or gates in mission.sqm

    class Item73

    {

    position[]={2568.4424, 1.5258789e-005, 12018.484};

    azimut=-118.4526;

    id=221;

    side="EMPTY";

    vehicle="Land_Gate_IndVar2_5";

    skill=1;

    text="TMax_Gate";

    };

    Next code - for all doors in the level, but error in that line: if (getPlayerUID _player in _allowedPlayers) then

    _allowedPlayers = "_GatePlayers_"+name _door; //_GatePlayers_TMax_Gate - example

    #include "uids.sqf"

    while { true } do {

    ...

    if (getPlayerUID _player in _allowedPlayers) then

    Error type string, expected array.

    How can I convert string into array for that script?


  2. Hi everybody!

    =DayZ=

    I create script which shows nickname of all player near me at 10 metres.

    That script works for all players and I encountered a problem. Script also shows nicknames through walls - like wallhack. I need a function which can trace position from first player's position to second player's position and return true when trace has been successful( without hit any wall ) and return false otherwise.

    Thanks!

    T-Max

×