RicardoLew
Member-
Content Count
12 -
Joined
-
Last visited
-
Medals
-
Medals
-
CatBook-Yi23332 started following RicardoLew
-
Updating vehicle height on map
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry for the multiple replies, i dont really know how to forum. -
Updating vehicle height on map
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Good point! private["_name","_markers"]; waituntil{visiblemap}; _markers = []; _anaccar = nearestObject [player, "ivory_suburban_anac"]; {if( _x isKindOf "Air") then { _rand = round (random(999)); _pos = getpos _x; _altura = _pos select 2; _marker = createMarkerLocal [format["%1_TRACKING",_rand],visiblePosition _x]; _marker setMarkerColorLocal "ColorRed"; _marker setMarkerTypeLocal "mil_circle"; _text = format["Modelo-%1. Registro-%2. Altura-%3m.", getText(configFile >> "cfgVehicles" >> typeOf _x >> "displayName"),_x getVariable["anac_air","Desconhecido"],str _altura]; _marker setMarkerTextLocal _text; _markers pushBack [_marker,_x]; }; } foreach vehicles; while {visibleMap} do { { private["_marker","_unit"]; _marker = _x select 0; _unit = _x select 1; if(!isNil "_unit") then { if(!isNull _unit) then { _marker setMarkerPosLocal (visiblePosition _unit); }; }; } foreach _markers; if(!visibleMap) exitWith {}; uiSleep 0.05; }; {deleteMarkerLocal (_x select 0);} foreach _markers; -
Updating vehicle height on map
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
-
Updating vehicle height on map
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
private["_name","_markers"]; waituntil{visiblemap}; _markers = []; _anaccar = nearestObject [player, "ivory_suburban_anac"]; {if( _x isKindOf "Air") then { _rand = round (random(999)); _pos = getpos _x; _altura = _pos select 2; _marker = createMarkerLocal [format["%1_TRACKING",_rand],visiblePosition _x]; _marker setMarkerColorLocal "ColorRed"; _marker setMarkerTypeLocal "mil_circle"; _text = format["Modelo-%1. Registro-%2. Altura-%3m.", getText(configFile >> "cfgVehicles" >> typeOf _x >> "displayName"),_x getVariable["anac_air","Desconhecido"],str _altura]; _marker setMarkerTextLocal _text; _markers pushBack [_marker,_x]; }; } foreach vehicles; while {visibleMap} do { { private["_marker","_unit"]; _marker = _x select 0; _unit = _x select 1; if(!isNil "_unit") then { if(!isNull _unit) then { _marker setMarkerPosLocal (visiblePosition _unit); }; }; } foreach _markers; if(!visibleMap) exitWith {}; uiSleep 0.05; }; {deleteMarkerLocal (_x select 0);} foreach _markers; -
I made a script that makes a vehicle marked on the map, showing its display name, custom made callsign and height. The problem is that i cant make the height to update automatically, i have to close and open the map so it updates. I would like to know if anyone have a clue how to do so i dont need to close the map to update the height all the time, so i can just open the screen and manage the air transport easily. Thanks!
-
Editor: Respawn object (balloon...)
RicardoLew replied to Flying-Coyotus's topic in ARGO - QUESTIONS & ANSWERS
i tried this: if (!alive this) then {sleep 1; "Land_Balloon_01_water_F" createvehicle position this}; dont seem to work tho :-/ -
RicardoLew started following I can't join the server, but others can
-
I just bought a server, and after the setup and launching Arma 3 Server all my friends could join it, but it haven't even showed up in the server list for me. I pinged the server from my PC and I had no package loss, but when i pinged my PC from the server it had 100% package loss. This issue seems like to occur only with me, would be glad if anyone here had it before and know how to solve. Thanks!
-
CBA - Community Base Addons - ARMA 3
RicardoLew replied to vipermaul's topic in ARMA 3 - ADDONS & MODS: COMPLETE
I would like to make a compact mod pack with all my server needs in one Steam Workshop mod. I haven't found anything about CBA that prohibit reuploads, and direct contact with the devs is not simple too, so I made this post to know if anyone have the answer / had the same problem. -
Help with position of array elements
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the help! I think some more practice is needed if i want to be good in this coding world! -
Help with position of array elements
RicardoLew posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I want to make a simple script that gives me the position of each element of an array that i created. That's all i got so far, but taking the position of each object is not working for me. _array = []; _objs = player nearObjects ["Land_cargo40_blue_f", 30]; _array pushback _objs; I tried to make "getpos forEach _objs" but it didnt work. Maybe someone can help me? Thanks! -
Help with a script to open a door when the player is near it!
RicardoLew replied to RicardoLew's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Oh, thanks! It helps a lot :D -
Help with a script to open a door when the player is near it!
RicardoLew posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Im still new to the scripting of Arma 3, and im trying to make a simple script where the player get near a house door and it opens. I got this so far: if (position player isEqualTo [house,[2.5,-1.5,0]]) then {house animate ["door_1_rot",1]}; I dont know how to handle a position with the vector of the house where the door is located, maybe someone can help me with this?