Search the Community
Showing results for tags 'attachto'.
Found 27 results
-
Wiki Edit - 'attachTo' command
AirsoftArmoury15_97 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I found something interesting with the 'attachTo' command recently, in order for the 'attachTo' command to work properly, an object must have a varName, not just an object reference. this means that the following code will not behave as intended: _object = createVehicle [args]: _object attachTo [args]; Instead i have to do something like below in order for it to work... _object = createVehicle [args]: _object setVehicleVarName "vehicle01"; _object attachTo [args]; I wish i knew this earlier.... Now it is entirely possible i am slow but i did not see anything about this on the community wiki or written down anywhere for that matter i dont know how to add it to the wiki myself or if i can add it myself, But adding this on the 'attachTo' wiki somewhere would be a great help in avoiding others slaving hours on a mod, just to find out that this is the issue. Thanks! -
Is there a way to freeze rotation with attachToRelative function?
Pvt.Chiken posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to attach a rather large object to a helicopter, essentially a spaceship. I did that using BIS_fnc_attachToRelative function and it works. The problem is, however, AI can't fly smoothly, and it looks extremely weird when a huge spaceship starts shaking all over the place. I need to know if there is a way to freeze the spaceship's rotation on pitch axis and roll axis so that it only turns together with the helicopter while generally remaining in the same orientation. -
[SOLVED] Paradropped tank goes under the map
kibaBG posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, I am using attachTo to paradrop a tank. The idea is the player is driving the tank on a "special" helipad in base and then the tank and the player got paradropped on the map. Its working fine until the tank touches the ground and the parachute detaches, the tank goes under the map and disappears! The player can eject and its fine but no more tank for him. Here is the code used in the trigger of the helipad: openMap true; onMapSingleClick " openMap false; _veh = (vehicle player); [_veh,150,_pos] call BIS_fnc_setHeight; _posNew = getPosATL _veh; _para = createVehicle ['B_Parachute_02_F', _posNew, [], 0, '']; _para attachTo [_veh,[0,0,0]]; onMapSingleClick '';"; Funny thing is if I do the script without the parachute the tanks got paradropped fine from 150m without breaking anything. 🤣 -
For lots of reasons old suicide bomber scripts do not work for me so I made a simple and working one: snackgrp = createGroup [east, true]; snackgrp setBehaviour "CARELESS"; snackgrp setSpeedMode "FULL"; //change speed mode if you want the bomber to be slower snackpos = [player, 30, 100, 3, 0, 20, 0] call BIS_fnc_findSafePos; //change 2nd and 3rd value in the array to add distance the bomber have to travel bomber = snackgrp createUnit ["LOP_Tak_Civ_Random",snackpos, [], 0, "CAN_COLLIDE"]; //you can change the classname of bomber to fit your scenario {_x setBehaviour "CARELESS"} forEach units snackgrp; {_x setSpeedMode "FULL"} forEach units snackgrp; explosives = selectRandom ["SatchelCharge_Remote_Ammo"]; //change expl classname for weaker/stronger effect or add more expl classnames for randomness charge = explosives createVehicle (position bomber); charge attachTo [bomber, [0,0.15,0.15],"Pelvis"]; charge setVectorDirAndUp [[1,0,0],[0,1,0]]; bombtrg = createTrigger ["EmptyDetector",(getPos bomber),true]; bombtrg setTriggerType "NONE"; bombtrg setTriggerArea [10, 10, -1,false]; bombtrg setTriggerActivation ["WEST", "PRESENT", false]; bombtrg setTriggerStatements ["this", "detach charge; charge setDamage 1;", "hint'Death by explosives'"]; bombtrg setTriggerTimeout [0, 0, 0, false]; //change numbers if you want to give some time for the player to run away after the bomber gets in radius bombtrg attachto [bomber]; private _stalking = [snackgrp, group player,5,0,{false},1] spawn BIS_fnc_stalk; Run as needed - trigger, execVM. I name it "snackbar.sqf", declare is as function in description.ext and then in a trigger I just type call KIB_fnc_snackbar; This way, in a big scenario, you have to change only "snackbar.sqf" once and it automatically changes every trigger on the map. Enjoy. Everything in one place. Tested in SP.
-
Hi, I am trying to attach balloon to player with rope. And balloon go up to certain height and it stay there until it pops when shoot it. balloon class Land_Balloon_01_air_F Code balloon enableRopeAttach true; myRope = ropeCreate [player, "RightHand", balloon, [0,0,0], 10]; for [{_x = 0}, {_x <= 10}, {_x = _x + 0.5}] do { _pos = getPos balloon; balloon setPos [_pos select 0, _pos select 1, _x]; sleep 1; };
- 14 replies
-
[How To] Functional HEMTT Mover and SAM Trailers
Twiznak posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone! I read a post by another user and felt the need to finally give back to the community. I give to you functional HEMTT Movers and SAM trailers. these 3 addActions allow players to tow and un-tow SAM trailers. Works on dedicated servers too! Semper Prorsum! Steam Workshop Demo Mission initPlayerLocal.sqf Thank you Larrow, pierremgi, and Davidoss . For me to be able to read someone's request for help and know what needs to be done before I even open notePad. Is all thanks to your tutelage. Both directly and indirectly through your extensive posts helping others. I am in your debt, thank you. -
hideObjectGlobal preventing Ai targeting... (WORKAROUND FOUND!)
LSValmont posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Agent dogs with an attached invisible unit so that other Ai can attack them... The problem is... as soon as I hide their models using hideObjectGlobal the Ai no longer targets them... as the below pic shows when unhidden the Ai shoots at them just fine. This is how I create the hidden agent: vVirtualEnemy = { params ["_unit"]; _ai = createAgent ["I_Survivor_F", [0,0,0], [], 0, "CAN_COLLIDE"]; _ai setFace ""; //hideObjectGlobal _ai; _ai disableAI "ALL"; //{_ai enableAI _x} forEach ["ANIM","TEAMSWITCH","CHECKVISIBLE"]; [_ai, "Acts_AidlPsitMstpSsurWnonDnon01"] remoteExec ["switchMove", 0]; _ai enableStamina false; _ai setUnitPos "MIDDLE"; _ai disablecollisionwith _unit; _unit disablecollisionwith _ai; _ai attachTo [_unit, [0,0,0]]; _unit setVariable ["_attAi", _ai, true]; _unit addEventHandler ["Killed", {deleteVehicle ((_this # 0) getVariable "_attAi")}]; //_ai forceSpeed 2; //_ai setAnimSpeedCoef 3; [_ai] join (group _unit); _ai addRating -100000; // Make sure is renegade! _ai allowdamage false; _ai setSpeaker "NoVoice"; _ai setSkill 0; }; How can I hide the virtual unit's models yet still be targeteable by other enemy ai?- 13 replies
-
- hideobjectglobal
- hideobject
-
(and 2 more)
Tagged with:
-
script AttachTo Vest to a Dog [Script]
PortalGunner posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
- - - - - - - - - - - - - - - - - - - - - - - - - EDIT: Solution here. - - - - - - - - - - - - - - - - - - - - - - - - - Hi all, I've been spending a while trying to figure out the proper method to attach a vest to a dog and correctly move it with the animations. Creation of dog and initial AttachTo are working fine, but I'm having trouble matching the direction of the vest to the dog's position. This is what I have been trying to work with so far, but it does not match correctly: _dog = dogDmy; _vest = "Vest_V_HarnessO_gry" createVehicle [0,0,0]; _vest attachTo [_dog,[0,-0.4,-0.54],"spine2"]; _n=[_dog,_vest] spawn { _dog = _this select 0; _vest = _this select 1; while {_vest in (attachedObjects _dog)} do { _vest setVectorDirAndUp [(_dog selectionPosition "spine2") vectorFromTo (_dog selectionPosition "hips"),[0.01,0.01,-0.99]]; sleep .1; }; }; There are similarities between this and a couple other scripts people have written, but they don't seem to work entirely for a dog. https://forums.bohemia.net/forums/topic/189737-attachto-trying-to-attch-a-lamp-on-torret/ http://killzonekid.com/arma-scripting-tutorials-uav-r2t-and-pip/ At the minute I am using While instead of a Draw3D or EachFrame EH to avoid unnecessary use of resources. Dog creation for testing: Thank you in advance! -
Is it possible to attach an object to the unit's weapon?
Baked Ham posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
i tried attachTo, and tried many memoryPoints, none of them can make the object rotate and move perfectly with the weapon while the unit is running... -
Attach object to player and make the object move with mouse cursor
Vandeanson posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I am a bit lost getting started with the basics for a script as i do not know what to look for. i want to add addactions to objects. that action attaches the object to the player i got that sortet. now i would like that the object is following my cursor, so i can move it around im front of me and , thisbis important: if i look up that lifts the object from the ground. currently the object is moving with me, but stuck to the ground. if someone could hint me into the right direction, i could read up on the rest:) thanks for any help vd -
My idea is to have an ambient flyby of a plane which will be replaced by a wrecked model... I currently use an edited version of tpw_air that spawns a specific aircraft, but rather than adding a classname to the tpw_air_aircraft array, I would like to add a new vehicle created by attaching a wrecked A6M to a Caesar BTT using the attachTo command, then detaching said Caesar BTT. Any of you clever fellows have an idea how to set this in motion?
-
_______________________________________________________________________________ !!! IMPORTANT UPDATE: !!! _______________________________________________________________________________ Hello ArmA Community, the attachTo command can be unnecessarily time consuming since you have to basically guess the position of the attached object. Therefore I've made a dialog with which you can attach any object to another and return the offset. And there's more: https://drive.google.com/drive/folders/0B8-BL9HKQ_OXd1NfSzhnSlBXVk0?resourcekey=0-O_1kudE4otj0GjT2Dw_Qpg&usp=sharing Main Interface: 1. Camera control: Move - WASD Up - Q Down - Y Faster - SHIFT Slower - ALT Detach pointer - SPACE (see 5.2.) 2. Source object, object of which the offset is taken 2.1. Select object from list of existing objects 2.2. Confirm selection 3. Offset, shows the current values // Until here is the basic stuff. The following points are not necessary but maybe interesting ------------------------------------------------------------------------------------------------------------------ 3.1. Step selector: Change the steps of which changes are applied ranging from 0.001 to 1. Positions can only be edited while pointer is not attached. Edits can be edited with the scroll wheel. 4. Memory points (Selections) 4.1. Select memory point, opens new dialog "Memory Points" (see below) 4.2. Enter the name of your own memory point. If memory point is not found, default offset [0,0,0] is used 5. Pointer 5.1. Show pointer yes/no 5.2. Detach/Attach pointer. Leave pointer whereever it currently is. Values are still evaluated. 5.3. Attaches the nearest object to the pointer and automatically disables simulation 5.4. ~Currently not used. If you want to create a new object then do so in the editor or Zeus. Object list is updated on dialog load~ 5.5. Delete object: Select an existing object in the COMBO and press the BUTTON to delete it. You can't delete yourself, the current source object or the current pointer object (that would cause many many script errors) 6. Directions of pointer object 6.1. Vector Dir: Shows the vectorDir (difficult behaviour, use (6.2) instead) 6.2. Degrees: Shows the orientation in degrees 6.3. Vector Up: Shows the vectorUp (difficult behaviour, use (6.4) instead) 6.4. getPitchBank: Uses BIS_fnc_getPitchBank 6.5. Enter and Reset: Enter apllies settings, Reset sets everything to normal 7. Other 7.1. Opens new dialog "Settings" (see below) 7.2. Copy the commands to the clipboard. 7.3.2. shows the resulting message 7.3. Credits: Shows contributors. Memory points: 1. Available memory points, Shows some default selections (link to topic follows (maybe)) 2. Search for specific memory point. Enter text. Results are shown in tree below 3. Find Memorypoints: Most useful control of them all. Automatically finds existing (!= [0,0,0]) selections 4. Resets the dialog 5. Passes selected memory point to Main Interface 6. Leave without changes Settings: 1. Pointer color (Default: GREEN) 1.1. Predefined colors and custom ones 1.2. Define own color. Remember to set "Alpha" to something greater than 0 or else nothing happens 1.3. Preview of custom color 2. Pointer size (Default: 10cm) 2.1. Select size 3. Pointer object (Default: sign_sphere_10cm) 3.1. Choose an existing object to become the pointer. (3.2.) has to be checked. 3.3. Create new object from config name as pointer. (3.4.) has to be checked. 4. Memory points (Default: Unchecked, Unchecked) 4.1. If checked the memory points will be shown next time you are executing point (3.) from Memory points dialog (see above) 4.2. Delete the pointers when dialog is closed. If unchecked, pointers will stay. 5. Simulation (Default: checked > enabled) 5.1. Enable or disable simulation of source object 6. Collsion (Default: checked > enabled) 6.1. Enable or disable collision of the pointer object with all other scenario objects 7. Exclude/Include objects (Default: Excuded objects: player, pointer, (camera)) 7.1. Select objects that won't be shown in the dialogs 7.2. Reverse actions of (7.1.) 8. Dialog 8.1. Apply the settings 8.2. Return all settings to default 8.3. Cancel: Leave without changes Changelog: Bugs, Quirks, Errors More Features: Of course the main function is to find the offset, therefore you only need point (1) to (3) of the main display. Everything else is just nice to have and I thought why not? The documentation inside of the scripts is pretty bad because I was focussing on scripting, not explaining. Feel free to ask me anything. Bugs can ofcourse be reported in this thread 😉 Thats all for now and have fun editing, 7erra ________________________________________________ Version 1.0 - 25.04.2017
-
Experimenting with attachTo and setVectorDirAndUp: an easier way?
Dallas Medina posted a topic in ARMA 3 - EDEN EDITOR
So I've been experimenting in the editor, trying to make "standoff" armor for APCs, make big ridiculous armored gun trucks, things like that. Basically the kind of makeshift DIY stuff we see in Iraq and Syria. Naturally, I'm using the attachTo and setVectorDirAndUp commands in each objects init field for this. This is an EXTREMELY time consuming and tedious process, as I have to fiddle around with the X,Y,Z coordinates of every piece and then hit "play scenario" just to test the placement of each piece and then end it, make guestimates, rinse, wash, repeat. Is there an easier way to do this? Like maybe some mod or addon or something that lets me just sync the object to the vehicle and then move it around with the mouse? Or maybe see my X/Y/Z coordinate adjustments in real-time in the editor, as opposed to having to start the scenario each time to see the placement? I've got some really cool ideas, but my god is this a pain in the ass lol. Here's some stuff I'm messing around with/WIP:- 4 replies
-
- attachto
- setvectordirandup
- (and 7 more)
-
attachTo Creating Visual Bug/Attaching to the Wrong Point For a Moment When Used on Moving Object
corvaillian posted a topic in ARMA 3 - TROUBLESHOOTING
Hi. When I use attachTo to attach object A to a moving object B, using an offset of [0,0,0], object A first moves to a position ahead of object B by a distance relative to the velocity of object B, before glitchily moving back to its proper position and attaching correctly. At first I hypothesized that attachTo was using object B's position in simulation time when first setting the position of object A, before settling on updating on the render time position of object B, which would have explained the positional gap increasing as object B's velocity increased. However, when I had a friend test the same, nothing of the sort happened. Instead, object A attaches to object B directly on the offset, no additional movement at all. Additionally, I tried deactivating the framerate limiter (and vsync) and attempted the same again. Same results. Both of us were testing with no mods and no startup parameters, on an empty VR map, with various different vehicles and objects. Ideas for what this is and/or how to fix it would be appreciated. -
Hey guys, I ve seen a Clip with the unsung mod. Someone create an epic battlebus and I want to do this on my own. The Normal way is to merge objects with the attachto command in the eden editor. But I think it will take much time to get the right position of the objects. Now my question. Can i merge all the objects i need in the o2 together? My truck should have some static mgs a flak or something else and sandbags on the Plattform. I want that the vehicle is a single unit what i can place again and again in my missons. I am sorry but i am a greenhorn in modelling. I will learn it to bring myself to the next level of creating cool stuff for arma 3. So thanks for your help :)
-
Paradrop Crate for Cutscene (Dedicated MP)
greenpeacekiller posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am trying to create a cutscene where a crate is dropped from the air. I use this crate as an 'actor' for the cutscene and delete it after it has served its purpose, after which I just simply have a second crate setup for the actual objective So far everything has been setup right, exepct for the parachute. Which doesnt seem to work properly on a dedicated server The way I have currently set it up is via a series of triggers. First I enable the simulation, unhide it and set its position using the SetPos command Then I proceed to add the parachute using this code: para1 = "B_parachute_02_F" createVehicle [0,0,0]; para1 setPosASL (getPosASL crate1); crate1 attachTo [para1, [0, 0, 0]]; para1 enablesimulation false; Now this seems to work fine in singleplayer, but on a dedicated server it either creates 2 parachutes or it puts the crate in the corner of the map, its really wierd and unreliable Any suggestions?- 4 replies
-
- multiplayer
- parachute
-
(and 4 more)
Tagged with:
-
Attach trigger to vehicle on vehicle respawn
Asmodeuz posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I am using the following setup (see the image below) to create a mobile spawn point for human players in a multiplayer mission. Vehicle respawn module is synced to the MSE-3 Marid so that the vehicle will respawn if players will desert it or it gets destroyed. Respawn position is synced to the MSE-3 Marid thus creating a spawn position in the vehicle. This spawn position will also move with the vehicle. The trigger there is set to OPFOR (Present). With this there has to be OPFOR players inside the trigger area for the Respawn position to be available to players. Now, I would like this to be so that the trigger is attached to the MSE-3 Marid so that it would go everywhere where the vehicle is going. I know that I can achieve this easily by typing the following eg. in the Marid's INIT-field: toActivateOPFORPlayerRespawnInOPFORapc attachTo [OPFORapc,[0,0,0]]; Now the problem is that when the Marid gets respawned the trigger won't be attached to the vehicle anymore. How to make it so that the trigger would be attached to the MSE-3 Marid at all times (= would get reattached on respawn)? -
[Request][Bug] attachTo doesn't follow animation (rotation)
Balingr posted a topic in ARMA 3 - TROUBLESHOOTING
What is happening: Objects attached to the player do not rotate on position change such as leanLeft leanRight or going prone. How to test this: Use the example here and attach explosives to your player. _expl1 = "DemoCharge_Remote_Ammo" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Pelvis"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; _expl2 = "DemoCharge_Remote_Ammo" createVehicle position player; _expl2 attachTo [player, [0, 0.15, 0.15], "Pelvis"]; _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ]; _expl3 = "DemoCharge_Remote_Ammo" createVehicle position player; _expl3 attachTo [player, [0.1, 0.1, 0.15], "Pelvis"]; _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ]; Now try to lean left/right and go prone, you'll notice that even thou it is attached to a memory point (which should know about its rotation?) the rotation doesn't change. What I suggest: Add the option to attach objects to the bones so they rotate according to the playing animation (This has been done in VBS already) -
handleattachto ArmA 3 Script HandleAttachTo
Rockhount posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Story This is a script that I wrote a few weeks ago for a friend. It's supposed to simplify the loading of cargo onto vehicles by the player. There are several routine integrated to avoid script errors. A description can be found inside the SQF file, how to execute the script. It's SP/MP/Dedicated and HC compatible. Have fun. Content It is a single ~140Code-Line-Big Script to enable the Player to attach objects with other objects via the action menu in a simple way. Purpose The aim of this script is to make it easier to implement a universal script, which enables the player to attach objects in a specific manner. Download Missions and Script on GitHub ArmaHolic Link Credits Script & Media: Rockhount Examples- 2 replies
-
- arma
- armed assault
- (and 13 more)
-
Experimenting with attachTo and setVectorDirAndUp: an easier way?
Dallas Medina posted a topic in ARMA 3 - QUESTIONS & ANSWERS
So I've been experimenting in the editor, trying to make "standoff" armor for APCs, make big ridiculous armored gun trucks, things like that. Basically the kind of makeshift DIY stuff we see in Iraq and Syria. Naturally, I'm using the attachTo and setVectorDirAndUp commands in each objects init field for this. This is an EXTREMELY time consuming and tedious process, as I have to fiddle around with the X,Y,Z coordinates of every piece and then hit "play scenario" just to test the placement of each piece and then end it, make guestimates, rinse, wash, repeat. Is there a way to do this easier? Like maybe some mod or addon or something that lets me just sync the object to the vehicle and then move it around with the mouse? Or maybe see my X/Y/Z coordinate adjustments in real-time in the editor, as opposed to having to start the scenario each time to see the placement? I've got some really cool ideas, but my god is this a pain in the ass lol. Here's some WIP/ideas I'm messing with now:- 1 reply
-
- setvectordirandup
- attachto
- (and 5 more)
-
I am trying to get a function to spawn from the init box of a logic unit that is created in front of about a dozen select enemy soldiers in a base. The idea is that the logic unit has a virtual box around it that set the players captive status from true to false to simulate an AI vision cone. The issue I am having is that the way the script is written is such that once it is called it spawns this logic unit for all units assigned to a given side. This isn't ideal because the stealth segment is only one objective in the whole mission and calling the stealth script has the effect of permanently handicapping all OPFOR in the entire operation. Since I haven't been able to figure out how to get the code to delete the logic units properly and return the AI to full "intelligence" I was hoping to just assign the function to certain units. I just can't seem to figure out how to get the array to work properly. The original code is: _enemyArray = []; _i = 0; {if (side _x == east) then {_enemyArray set [_i, _x]; _i = _i + 1};} forEach allUnits; _center = createCenter sideLogic; _group = createGroup _center; player setCaptive true; for "_j" from 0 to (count _enemyArray) - 1 step 1 do { "Logic" createUnit [position (_enemyArray select _j), _group, "this AttachTo [(_enemyArray select _j), [0,25,0.5]]; _anythi = [_enemyArray select _j, this] spawn _fex_fnc_patrol;"]; sleep 0.1; }; As you can see all the units on side == east are assigned an index in the array and then all of those index's have a logic unit spawned at a specific offset which then calls the function from it's init box. I figured that simply removing lines 2 and 3, which index all units from the opfor side in the array, then change the code to this: _enemyArray = [patrol1, patrol2, patrol3, patrol4, patrol5, patrol6, sentry1, sentry2, sentry3]; _center = createCenter sideLogic; _group = createGroup _center; for "_j" from 0 to 9 do {player setCaptive true; "Logic" createUnit [position (_enemyArray select _j), _group, "this AttachTo [(_enemyArray select _j), [0,14,0.5]]; _anythi = [_enemyArray select _j, this] spawn _fex_fnc_patrol;"]; sleep 0.1; }; would work. Unfortunately what seems to happen is that either the logic unit does not spawn at all which results in the player being permanently set to captive of the code throws an error that the "Logic" createUnit command requires 3 elements and I provided 0. Im super confused, can anyone help??
- 3 replies
-
- array
- createunit
-
(and 1 more)
Tagged with:
-
Respawning a vehicle with objects attached to it
Nowhere posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to get a vehicle that has three objects attached to it to respawn with the objects attached to it. In this case its a UGV Stomper that has an ammo crate and two fuel pods attached with the attachto command. I have the drone synced to a vehicle spawn point and it respawns correctly. The objects that are attached do NOT respawn at all even after syncing them to the vehicle respawn point. So, how do I get those objects to respawn and reattach themselves to the drone after the drone is destroyed and respawns? -
attachTo: How to enable collision for attached objects?
Undeceived posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys! Simply asked: Is there a way to prevent this? :D How can I enable collision for the container so that it doesn't go through walls or other objects? Thanks a lot! -
slingload Helo AttachTo Script without names, adding action to helo
EnvakeoLugaria posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys, I've been playing a bit of the OPTRE mod, and I've talked with one of their devs about a way to attach a vehicle to a helicopter. I have a bit of experience in the 3D editor, and I'm familiar with everything up to more advanced scripting. The way it works is it attaches the MRAP vehicle to the underside of the helicopter, no ropes or anything. The line looks like this, with ___Name being the vehicle names: mrapName attachTo [heloName, ([(typeOf mrapName)] call OPTRE_fnc_PelicanAttachToPoints)] This works if you name the two vehicles, and activate the function, I've done a trigger and addAction, BUT, I want to find out how to run this WITHOUT having to name the vehicles before hand. I am guessing it would be some "find the ID of the MRAP, attachTo, find ID of helo" kinda thing. I would have to think normal sling loading has to do this to an extent, right? Find the closest vehicle, and attach the ropes...I just thought I'd ask if anyone knows where I could start looking for a way to do this. Thanks for any help -Envak -
SwitchMove Not working in MP but does in SP
daza posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've made a hostage/rescue in SP the code to make the unit sit and remain in the chair works, but in MP the unit is standing through the chair rather than sitting. I do not know if it the switchmove is the one not playing ball or its the AttachTo? Since the unit is in the correct position i think the problem is the switchmove...? This is what i have in the init of the Unit in question: snipe SetCaptive true; RemoveAllWeapons snipe; snipe setBehaviour "SAFE"; snipe switchMove "InBaseMoves_SittingRifle1"; snipe disableAI "anim"; snipe attachTo [b3,[0,0, -0.47]]; snipe SetVectorDirAndUp [[1,0,0],[0,0,1]];