-
Content Count
239 -
Joined
-
Last visited
-
Medals
Everything posted by mr_shadow
-
Hello, i would like to know how can i do the BIS_fnc_MP but the target should not be player? for example if i will look at my legs i will become a target so i would like the other player exec BIS_fnc_MP. _trg = cursorTarget ; _trg2 = (player != _trg) [[_trg2 ], "knock", _trg2 , false] spawn BIS_fnc_MP;
-
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?
-
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.
-
Quick and fun projectile path tracing!
mr_shadow replied to Hypnomatic's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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; }; }; }]; -
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?
-
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
-
Hello, does anyone have any experience with saving bases on the server between restarts, so it will stay after it?
-
Player sidechat in MP mission
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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; -
Player sidechat in MP mission
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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; -
Player sidechat in MP mission
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
Player sidechat in MP mission
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
Player sidechat in MP mission
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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] -
Hello, does anyone know if there is a way to reload the launcher with script? For example I have a player and added him "launch_NLAW_F", is there a way to reload it or setammo of it? I dont want the unit have a backpack on his skin. I have tryed to setammo of currentweapon and secondaryweapon but it seems to me that this command does not work with launchers.
-
Launcher reload script
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thing that helped me: player addbackpack "B_Kitbag_sgg"; player addSecondaryWeaponItem "NLAW_F"; removebackpack player; -
Gonna test this in MP and then reply. It shows the action in the local mission.
-
Hello there, I would like to ask how should look the "addaction" on the object which was created by player. So that object have an action which will teleport any other player right to the postion of the owner of this object.
-
This one is also not showing a thing.
-
Seems like it is, but sadly it doesn't work. Not adding an action.
-
Launcher reload script
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Do you have a backpack? -
is there a way to make like _this select I can't give names for every units like unit_1. I want the player to createvehicle object on key press, and add the action to this object so everybody will be able teleport to this player by using this object.
-
Launcher reload script
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No, that doesn't work. -
Launcher reload script
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've tryed vehicle player loadMagazine [[0],"launch_NLAW_F","NLAW_F"]; which doesn't work. -
Hey there, I was wondering if that is possible to take the ffect from the zeus entity like C_Soldier_VR_F I want to attach this color effect to the other person. Im gonna use this effect and patriclesouce.
-
Hi guys, Does anyone know the way to make the spawn point availible only if there are no enemies around? So it's like the point was captured by friendly troops, however if the enemy will capture this point, I want to make it a spawn point only for enemy team players. Thanks for any help.
-
Spawn point if no enemeis around
mr_shadow replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have tryed to use in condition : ({side _x == west} count thisList > {side _x == east} count thisList) Both syncronising or making completely new point, so far I failed, any ideas how to do it?