Jump to content

Cryonic.

Member
  • Content Count

    25
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About Cryonic.

  • Rank
    Private First Class
  1. Thanks for the reply! Do you know how I could prohibit it from working if an enemy is within 50m?
  2. I'm trying to create a rally point system that is similar to Squad's, where only the squad leader can place down a rally point if they have at least one squad member in their vicinity and there are no enemies within 50m. So far, I have it that the squad leader (wsl1) can only place down a rally (wsquadRP1) if they have more than 0 players in their vicinity. I'd like to limit the nearEntities within 15m to only players in the same group as the squad leader and I think I can use that same method but for detecting if enemies are within 50m, but I'm not sure how. All assistance is greatly appreciated. waitUntil {!isNull player}; _unit = _this select 0; if (wsl1 == _unit) then {_unit addAction ["Deploy Rally Point","_num = player nearEntities ['Man',15]; if(count _num >0) then {wsquadRP1 SetPos (player modeltoworld [0,3,0])} else {hint 'You need at least one squad member nearby to deploy a Rally Point'}","",1.5,false,true,"","_this == _target"];};
  3. Bloody Bayonet Gaming is an Arma 3 unit that gets together on Friday & Saturday nights to chill out and play custom missions and scenarios that are made by our members. We usually play as the USMC, US Army, Takistani Militia, or Russian forces. We all like to have a good time and we don't hardcore simulate or roleplay. We are currently trying to get more people so that we can conduct bigger and more complex missions. It doesn't matter if you're already in unit because you can be a member of three units at any given time. If you're interested in being a part of these events then contact me (Cryonic) on Steam and I will get you the mod list we use and get you on our TeamSpeak server. Thank You.
  4. The script you provided still only works for the server host.
  5. onPlayerRespawn.sqf: _uniform = uniform player; if ("rhsgref_uniform_woodland" isEqualTo _uniform) then {execVM "medic.sqf"}; if ("rhsgref_uniform_og107_erdl" isEqualTo _uniform) then {execVM "grenadier.sqf"}; if ("rhsgref_uniform_woodland_olive" isEqualTo _uniform) then {execVM "marksman.sqf"}; if ("rhsgref_uniform_olive" isEqualTo _uniform) then {execVM "autorifleman.sqf"}; if ("rhsgref_uniform_og107" isEqualTo _uniform) then {execVM "squadleader.sqf"}; medic.sqf: player forceAddUniform "rhsgref_uniform_woodland"; player addVest "CUP_V_RUS_Smersh_1"; for "_i" from 1 to 8 do {player addItemToVest "CUP_30Rnd_556x45_Stanag";}; player addBackpack "CUP_B_AlicePack_Khaki"; for "_i" from 1 to 35 do {player addItemToBackpack "ACE_fieldDressing";}; for "_i" from 1 to 20 do {player addItemToBackpack "ACE_epinephrine";}; for "_i" from 1 to 20 do {player addItemToBackpack "ACE_tourniquet";}; for "_i" from 1 to 20 do {player addItemToBackpack "ACE_morphine";}; player addItemToBackpack "ACE_surgicalKit"; for "_i" from 1 to 4 do {player addItemToBackpack "ACE_salineIV_500";}; for "_i" from 1 to 4 do {player addItemToBackpack "ACE_salineIV_250";}; for "_i" from 1 to 4 do {player addItemToBackpack "ACE_salineIV";}; player addItemToBackpack "ACE_personalAidKit"; for "_i" from 1 to 35 do {player addItemToBackpack "ACE_packingBandage";}; for "_i" from 1 to 35 do {player addItemToBackpack "ACE_quikclot";}; for "_i" from 1 to 35 do {player addItemToBackpack "ACE_elasticBandage";}; player addItemToBackpack "ACE_EarPlugs"; player addHeadgear "CUP_H_USArmy_Helmet_M1_m81"; player addWeapon "CUP_arifle_M16A2"; player linkItem "ItemMap"; player linkItem "ItemCompass"; player linkItem "tf_microdagr"; player linkItem "tf_anprc152_1"; This script is only working locally and not for other players in the server. It is used to restock a player's loadout when they respawn. I'm pretty new to sqf so I really appreciate any help I receive. Thanks!
  6. Cryonic.

    GF Headshot + Killfeed Script

    I changed out the default headshot sound for a new sound.ogg, but when I get a headshot it says that it cannot find the sound even though both sounds are in the Killfeed_GF folder.
  7. Cryonic.

    GF Headshot + Killfeed Script

    Where do I place the information copied from the description.ext?
  8. Cryonic.

    Script Help!

    Hello everyone, I thank you all for helping me create script for a safe zone. Through the past few days I've tested several different scripts that were sent to me, but unfortunately, none of them were fully successful. Until now! Through the help of someone who has much experience and is very talented at coding, we were able to create a script for a safe zone that works 100%. Once again, thanks to everyone who participated in this thread. Safe Zone Script: (place in mission's init.sqf file) (create two markers labeled "blufor_safe_zone" & "opfor_safe_zone" (-quotations)) 0 = [] spawn { _safeZones = [["blufor_safe_zone", west], ["opfor_safe_zone", east]]; while {true} do { { _unit = _x; _exit = true; { _unitSide = side _unit; if(_unit inArea (_x select 0) && _unitSide isEqualTo (_x select 1) || _unitSide isEqualTo civilian) exitWith { _exit = false; _unit allowDamage false; }; }forEach _safeZones; if(_exit) then { _unit allowDamage true; }; }forEach (allUnits + vehicles); sleep 1; }; };
  9. I want it to protect players of a specific side and their vehicles.
  10. Cryonic.

    Script Help!

    It would work but it is very minimal. You cant change the shape, size, or which side it protects, nor does it protect vehicles.
  11. Cryonic.

    Script Help!

    I don't know. This was given to me. I know very little about scripting.
  12. Cryonic.

    Script Help!

    I've been given a new script but it only protects opfor's side. //Untested script. 0 = [] spawn { //[[Marker Name, Side], [Marker Name, Side], etc...] _safeZones = [["blufor_safe_zone", west], ["opfor_safe_zone", east]]; while {true} do { { //stores the current marker name _markerName = _x select 0; //stores the current marker side _markerSide = _x select 1; { //see if unit/vehicle position is in the area of the marker if((position _x) inArea _markerName) then { //comparing the unit/vehicle side to the current marker side. will also protects empty vehicles if((side _x) == _markerSide || (side _x) == civilian) then { //if unit side belongs to zone side _x allowDamage false; }else{ //if unit side does not belong to zone side _x allowDamage true; } }else{ //if unit isn't in zone _x allowDamage true; } }forEach (allUnits + vehicles); }forEach _safeZones; sleep 1.0; }; }; Anyone know why this would be?
  13. Error in expression <ue}; true } count (allUnits + vehicles) select {side _x isEqualTo west}; { if> 2:41:58 Error position: <select {side _x isEqualTo west}; {
  14. I think this is it Error position: <select {side _x isEqualTo west};
  15. I'm getting an error when I spawn in, but I don't know how to send you the pic.
×