Search the Community
Showing results for tags 'apply'.
Found 3 results
-
// Listing all spots found in reverse sorted: _spots = [_building] call BIS_fnc_buildingPositions; // Take each spot ([x,y,z]) and its Z axis and sort them by highest to lower: _spots = [_spots, [], {_x select 2}, "DESCEND"] call BIS_fnc_sortBy; Above, a code where I'm identifying the highest spot in a building, but reading the BIS_fnc_sortBy, I'm pretty sure there are ways to figure out which two of those spots are closer to the object-target outside. My goal here is to let snipers know which position inside the building will provide a better view of the target zone far away, avoiding at least the center building walls itself. Any idea? I think perhaps using apply? My brain... Edited 45min later 😂: // Selecting only those spots that are near the target-zone when compares the the building center position (regularly the middle of the building asset): _spots = _spots select { _x distance2D _objTarget < (_building distance2D _objTarget) }; Running some tests, it's working well with towers (assets that often are narrow buildings) but not with churches where their bell towers are at one end of the building. Used: https://community.bistudio.com/wiki/BIS_fnc_buildingPositions https://community.bistudio.com/wiki/BIS_fnc_sortBy https://community.bistudio.com/wiki/select
-
APPLY FOR MY NEW UNIT (14th Marine Regement)
Sgt.Melker posted a topic in ARMA 3 - SQUADS AND FANPAGES
WELCOME TO THE OUR UNIT POST Link to the 14th Marine Regement Unit : https://units.arma3.com/unit/mrg14th Link to the 14th Marine Regement Unit Website : https://14thmarineregement.jimdo.com/ We in the 14th Marine Regement are looking for players who love Milsim, Multiplayer Mission and more. We have our own teamspeak witch is very well made with custom icons/tags that you get when you have been accepted after an easy interview of why you want to join. Currently our Unit is very unpopulated but it has been popular before. It's not populated anymore since it shut down last year but we are now opening it! By joining the 14th Marine Regement Unit you will have an ingame patch on you're Right Arm with our logo. You will have access to our teamspeak3 and channels that belong to the members. (Training room, Mission Room etc..) WE WANT YOU TO JOIN! We want as many people to join from all around the world that can attend our events and others. We want to grow and have a nice community that people like! Everyone can join but you need to follow the listed rules. RULES 1. 16+ years old. 2. Own Teamspeak3. 3. Download Task Force Radio for Arma 3/Teamspeak. 4. Be polite and have manners & respect to others. 5. Not spread hate or racist/nazist things. 6. Willing to play on upcoming events. (Not all we understand if your busy) 7. Have a decent mic that works and understandable. 8. Having fun and feeling comfortable with other players. Jump on our teamspeak/comment on this post or send me a email over at : melkerornberg233@gmail.com if you are interested in joining! Kind regards MSgt.Melker (Owner and Founder of The 14th Marine Regement Unit. -
apply or forEach (or maybe count)?
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys, I just crawled the wiki for usefull commands and found apply in it. Correct me if Im wrong but I think its doing nearly the same as forEach if u not need that _forEachIndex variable. Is there another difference which i ve not seen and did anybody measure which command is faster?