Wetherby
Member-
Content Count
13 -
Joined
-
Last visited
-
Medals
Everything posted by Wetherby
-
Search a script to spawn and respawn unit in a marker
Wetherby posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone, I search a script capable to spawn unit when is close to a marker, despawn them when player is outside marker and respawn when the player is anew close to marker, i have trying this but for a reason i can't find it doesn't work, ennemi spawn but don't despawn and respawn : the test script thank for your time and help and sorry for bad english -
Search a script to spawn and respawn unit in a marker
Wetherby replied to Wetherby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank JShock and benw but after trying EOS and saw it work i decide to use it for my mission but thank anyway. -
Search a script to spawn and respawn unit in a marker
Wetherby replied to Wetherby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have trying a long time ago EOS and IIRC he caused some problem with my mission, i go try it with the new version and i feedback to you if it work or not, thank for your help Mario. -
Grimes Simple Revive Script
Wetherby replied to KC Grimes's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone, I use Grimes simple script(thank to Grimes for this super script) in my mission and i have saw a bug, when you are unconscious and a teammate revive you, you can press escape and you are immediately revive, for the reviver the script say the revive is abort and for the people revive the script say revive is complete. Sorry for english mystakes. -
Problem with Patrol script using SHK_pos.
Wetherby posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone, I have a problem with a patrol running with position find by SHK_pos(big thank to you Shuko for these great scripts) the script stop run when he must find patrol position, maybe it is the for command or incompatible position but i can't say how doesn't work so i request you help please The Patrol script Great thank for your help! -
Hello everyone, I have a problem with a patrol running with position find by SHK_pos(big thank to you Shuko for these great scripts) the script stop run when he must find patrol position, maybe it is the for command or incompatible position but i can't say how doesn't work so i request you help please The Patrol script if (!isServer) exitWith {}; _patrolgroupcentral = creategroup east; _patrolgroupside1 = creategroup east; _patrolgroupside2 = creategroup east; _patrolgroupside3 = creategroup east; _guard1 = creategroup east; _mark = _this select 0; _marksize = getMarkerSize _mark; _markaxisA = _marksize select 0; _sure = _markaxisA; _sure2 = _markaxisA/2; _range1 = round (Random 450); _range2 = round (Random 300); _spawnpos = getmarkerpos (_mark); _pos1 = [getmarkerpos _mark,[_markaxisA/2,_sure],[0,90]] call SHK_pos; _allunits = ["O_G_medic_F","O_G_officer_F","O_G_Soldier_A_F","O_G_Soldier_AR_F","O_G_Soldier_exp_F","O_G_Soldier_F","O_G_Soldier_GL_F","O_G_Soldier_LAT_F","O_G_Soldier_lite_F","O_G_Soldier_M_F","O_G_Soldier_SL_F","O_G_Soldier_TL_F"]; _allammoboxOPFOR = ["O_supplyCrate_F","Box_IND_Support_F","Box_East_Support_F","Box_IND_Wps_F","Box_East_Wps_F","Box_IND_WpsSpecial_F","Box_East_WpsSpecial_F","I_supplyCrate_F","C_supplyCrate_F","IG_supplyCrate_F","Box_IND_AmmoOrd_F","Box_East_AmmoOrd_F","Box_IND_Grenades_F","Box_East_Grenades_F","Box_IND_WpsLaunch_F","Box_NATO_WpsLaunch_F","Box_East_WpsLaunch_F","Box_IND_Ammo_F","Box_East_Ammo_F","Box_NATO_AmmoVeh_F","Box_IND_AmmoVeh_F","Box_East_AmmoVeh_F","Box_NATO_Support_F","Box_NATO_WpsSpecial_F","Box_NATO_Wps_F","B_supplyCrate_F","Box_NATO_Grenades_F","Box_NATO_AmmoOrd_F","Box_NATO_Ammo_F"]; _max = (count _allunits)-1; _maxAmmo = (count _allammoboxOPFOR)-1; _officier1 = _patrolgroupcentral createUnit [_allunits select (round random _max),_pos1, [], 0,"NONE"]; _officier1 setskill ["commanding",1]; _officier1 setskill ["general",1]; _patrolgroupcentral setBehaviour "SAFE"; _patrolgroupcentral setSpeedMode "LIMITED"; _patrolgroupcentral setCombatMode "RED"; _patrolgroupcentral setFormation (["STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE", "DIAMOND"] call BIS_fnc_selectRandom); //Guard for "_j" from 0 to Numbermedian do { _unit1 = _patrolgroupcentral createUnit [_allunits select (round random _max),position _officier1, [], 5, "FORM"]; [_unit1] join _patrolgroupcentral; _unit1 setskill ["spotDistance",0.7]; _unit1 setskill ["spotTime",0.7]; }; for "_j" from 0 to 6000 do { _posP1 = [getmarkerpos _mark,[150,_markaxisA],[0,90],0] call SHK_pos; _posP2 = [getmarkerpos _mark,[150,_markaxisA],[90,180],0] call SHK_pos; _posP3 = [getmarkerpos _mark,[150,_markaxisA],[180,270],0] call SHK_pos; _posP4 = [getmarkerpos _mark,[150,_markaxisA],[270,0],0] call SHK_pos; _wp1 = _patrolgroupcentral addWaypoint [_posP2, 0]; _wp1 setWaypointType "MOVE"; _wp2 = _patrolgroupcentral addWaypoint [_posP1, 0]; _wp2 setWaypointType "MOVE"; _wp3 = _patrolgroupcentral addWaypoint [_posP2, 0]; _wp3 setWaypointType "MOVE"; _wp4 = _patrolgroupcentral addWaypoint [_posP3, 0]; _wp4 setWaypointType "MOVE"; }; Sorry i don't say how is the spoiler code. Great thank for your help!
-
Another Problem with player distance
Wetherby posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone, I have a problem, i want to check a distance between all west unit and a position and when west unit is in the disatnce range OPFOR spawn, i have try this command but it doesn't work, no OPFOR spawn: waitUntil {{side _x == west && _x distance _spawnpos <= 500 } foreach allunits}; _spawnpos variable is a position. Thank you for your help,your time and attention. -
Another Problem with player distance
Wetherby replied to Wetherby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank F2k SEL it work! Jacmac I use trigger to spawn unit but i want a to despawn unit when west is more 500m between position and trigger can't do that i think but if i have wrong tell me what can i do that because if it's better for permormance i will take it. Sorry for english mistake. -
Problem with Player distance
Wetherby replied to Wetherby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you a lot it work! -
Hello everyone, I have a problem in my Arma mission, i want to spawn ennemi only if the distance between player and marker is less than the axis A plus 250 meters, i have search a lot and i have tried this command : but it does't work so I request your big knowledge about script Thank for your time and attention
-
Problem with Player distance
Wetherby replied to Wetherby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry, _this select 0 is refering to a trigger(No condition and no activation so is work) with an execVM with the marker array, i have trie a hint to say where is error and error is on player distance and i have no script error. Thank for your correction I have tried to indicate the name of marker like your script correction but it doesn't work always. -
Many thank LAxemann!
-
hello nkey and thank for your excellent addon! I have one question: It is possible to delete the script which add radio backpack at unit in begining of a game?