Jump to content

mr_shadow

Member
  • Content count

    239
  • Joined

  • Last visited

  • Medals

Community Reputation

3 Neutral

1 Follower

About mr_shadow

  • Rank
    Staff Sergeant

Recent Profile Visitors

559 profile views
  1. Hello guys, I would like to know how should look the command in MP if i want the player to press on acion and then execute in sidechat a message for example "Unit327 : I need backup", so the other players will see his name too. The thing i do not know is how it should be executed exactly.
  2. Hi there, i need some of your help please. I'm trying to make a script which will basically delete the bullet and draw a green tracer line to the cursortarget. So far as I know, all the scripts were based on the bullet tracing, and I was wondering if it is possible just to draw line for 5-7 sec which will be created about 100m distance or something like that. Let me show I want to make, its incorrect code: init.sqf [] execVM 'scripts\tracer.sqf'; Player addEventhandler ["Fired", { _bullet = (_this select 6); _target = cursorTarget; dist_1=player distance _target; if (primaryweapon player== "impulseg") then { deletevehicle _bullet; if (_target isKindOf "Man") and (if (dist_1 < 50))then { [player, [1,0,0,1], 3, 2, nil, 3] call hyp_fnc_traceFire; _target setdamage 1; }; }; }];
  3. Tracer Line script

    Let me show I want to make, its incorrect code: init.sqf [] execVM 'scripts\tracer.sqf'; Player addEventhandler ["Fired", { _bullet = (_this select 6); _target = cursorTarget; dist_1=player distance _target; if (primaryweapon player== "impulseg") then { deletevehicle _bullet; if (_target isKindOf "Man") and (if (dist_1 < 50))then { [player, [1,0,0,1], 3, 2, nil, 3] call hyp_fnc_traceFire; _target setdamage 1; }; }; }]; tracer.sqf
  4. Hello guys, I'm trying to make a script which will basically dewlete the bullet and draw a green tracer line to the cursortarget. So far as I know, all the scripts were based on the bullet tracing, and I was wondering if it is possible just to draw line for 5-7 sec which will be created about 100m distance or something like that. Any help please?
  5. Player sidechat in MP mission

    No way, that doesn't work. Same as [player, format ["Negative"], "sidechat", west, false ,false] call BIS_fnc_MP; or [[_player, format ["%1: Negative",name _player]], "sidechat", west, false ,false] call BIS_fnc_MP;
  6. Player sidechat in MP mission

    Yes when player clicks on the button in that menu i want him to say3d and send a chat message so can I do like this? negative.sqf(directly from dialog.hpp no other sqf files) [[player, format ["Negative"], "sidechat", side player, false ,false] call BIS_fnc_MP;
  7. Player sidechat in MP mission

    right, so dialog will directly execute the negative.sqf? and that's the code inside it: [[player, format ["Negative"], "sidechat", west, false ,false] call BIS_fnc_MP; The thing I wanna completely understand is - how it will work : showing the "Negative" only for the side player or showing this message for all players but in their sidechat(which means that opfor will see blufor message) ? __________________________________________________________________________________ Same thing have to be used on the opfor side, but only if (side player == side _theguywhoseethismessage) so as i thought i made this: _player = player; closedialog 0; [[_player], "negative", nil, false] spawn BIS_fnc_MP; _player= _this select 0; if (side player == side _player) then{ player sideChat format["Unit %1 : Negative.",name _player]; }; Tell me please the correct way.
  8. Player sidechat in MP mission

    Ye, I know how it should work, the problem is - that it's not working) And the problem is in that part: _player= _this select 0 ; And I'm not sure if all the players will see the message. This part is just for testing, thats why it looks complicated. _player sidechat format ["%1: Negative",name _player] P.S. I'm focusing on onKeyUp to make it close when the key was released, didn't get luck yet. I'm using keydown and key up, so the dialog exists while player is holding button.
  9. Player sidechat in MP mission

    Thing I'm trying to do: neg.sqf (when you press on button) [[], "negative", nil, false] spawn BIS_fnc_MP; init.sqf negative = compile preprocessFileLineNumbers "menuQ\negative.sqf"; negative.sqf _player= _this select 0 ; _player sidechat format ["%1: Negative",name _player]
  10. Hello everyone, I was wondering how should look my script about sidechat. On keyHold i have a dialog, which is creating a menu like in BF, where you can communmicate by radio. Question is - how should I execute a sript with with the BIS function or else?
  11. Launcher reload script

    Thing that helped me: player addbackpack "B_Kitbag_sgg"; player addSecondaryWeaponItem "NLAW_F"; removebackpack player;
  12. Teleport to player

    Gonna test this in MP and then reply. It shows the action in the local mission.
  13. Teleport to player

    This one is also not showing a thing.
  14. Teleport to player

    Seems like it is, but sadly it doesn't work. Not adding an action.
  15. Launcher reload script

    Do you have a backpack?
×