Search the Community
Showing results for tags 'inarea'.
Found 2 results
Undefined variable: _this
italiandrache posted a topic in ARMA 3 - MISSION EDITING & SCRIPTINGHi, I'm new to scripting so forgive me for what I'm asking. I'm trying to make a training mission for my clan. I need to randomly place four flags inside a given area defined by a marker, and these four flags have some constraints in terms of the position in which they can be placed. Here's a bit of the code: traguardo setPos ([["white"], ] call BIS_fnc_randomPos); blueflag setPos ([[[getPos traguardo, 4500]], [[getPos traguardo, 2500], "water"], _this inArea "white"] call BIS_fnc_randomPos); where "white" is the name of the above-stated marker. When I run the code, it returns me the error: |#|_this inArea "white" Error undefined variable in the expression: _this don't know why though. Thank you greatly for your help.
Check if object in marker
HazJ posted a topic in ARMA 2 & OA : MISSIONS - Editing & ScriptingHello, I am rewriting a mission for 1.64 EOL. It is a total pain sometimes as being so used to A3 and all. A lot of commands and functions are not available. What I am a looking for is an equivalent of inArea command or inTrigger? I want to check if an object is inside a marker. Although BIS_fnc_inTrigger is in A2, the marker syntax (STRING) doesn't appear to be. Anyone know? If not, I'll just have to write my own function. Just wanted to see if there is something already.