Search the Community
Showing results for tags 'selectionPosition'.
Found 2 results
-
Hi, I am using the below code to draw an icon on a door. It works fine but there is a weird offset issue. Is there a fix for this or just a manual offset work-around? Maybe I could get position between Door_2_trigger and Door_2? See pictures below. // for quick testing drawIcon3D [MISSION_ROOT + "client\visual\unlocked.paa", [1, 1, 1, 1], [((warehouse modelToWorld (warehouse selectionPosition "Door_2_trigger")) select 0), ((warehouse modelToWorld (warehouse selectionPosition "Door_2_trigger")) select 1), ((warehouse modelToWorld (warehouse selectionPosition "Door_2_trigger")) select 2)], 1, 1, 0, "", 1, 0, "PuristaMedium"]; Door_2 Door_2_trigger
-
Can't find door with selectionPosition
kresjah posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Long story short, I'd like to get the position for the trigger of the airport entryway doors. The config files for the airport states the following: configfile >> "CfgVehicles" >> "Land_Airport_right_F" >> "UserActions" >> "OpenDoor_7" >> position = "Door_7_trigger"; So, I want to get the position of this door trigger. I've tried using selectionPosition but always get a [0, 0, 0] result (which means it didn't find the memory point). Am I doing something wrong here? Does anyone have a solution for this? This is the code I use to check for the position: * Player object's Init field player addAction ["<t color='#FFFF00'>DEBUG: </t><t>Show memory point 7 on Airport</t>", { execVM "getMemoryPointDoor.sqf"; }, nil, 9999, false, true, "", ""]; * getMemoryPointDoor.sqf private["_airport", "_memoryPoint"]; // Find nearest Airport object within a 100m radius of player _airport = (nearestObjects [player, ["Land_Airport_left_F", "Land_Airport_right_F"], 100]) select 0; if (isnil "_airport") exitwith { hint "No airport object found."; }; // Studying Land_Airport_*_F and its respective configs you'll find that the UserActions for the double sliding door entryways has trigger positions named Door_7_trigger and Door_8_trigger. // I'd assume these refer to memory points on the model? I can find no indication in the config viewer of these points being defined somewhere in the config class for the set pieces. // For this example, I've chosen to use Door_7_trigger. _memoryPoint = _airport selectionPosition ["Door_7_trigger"]; if (_memoryPoint isEqualTo [0, 0, 0]) exitwith { hint "Airport object found, but failed to retrieve memory point position."; }; hint format["Position of memory point: %1", _memoryPoint];- 2 replies
-
- selectionPosition
- Editor
-
(and 2 more)
Tagged with: