Arma 3
Rogue771 Apr 5, 2020 @ 5:44am
Having an object attachto a turret
Hi, been struggling with this for awhile now, have google and tried a lot of different things but no matter what i try it doesn't work. I'm trying to attach a object onto a static turret and then when the turret moves the object moves with it instead of staying in the same place but I'm clueless on how to get it to work so any help will really be appreciated.
< >
Showing 1-14 of 14 comments
Rogue771 Apr 5, 2020 @ 11:58am 
Thanks, do you have an example code on how you would go about attaching to the memory point? Or is it something like: thing attachTo [object, [0,0,0],"memoryPoint"];
Hortzy Apr 5, 2020 @ 12:04pm 
Originally posted by Rogue771:
Thanks, do you have an example code on how you would go about attaching to the memory point? Or is it something like: thing attachTo [object, [0,0,0],"memoryPoint"];

thats exactly it
keep in mind tho, i think this will attach the object to the memory point, but it will not follow the turrets direction(vehicle direction vs turret direction), it will still only follow the direction of the "vehicle" itself
Last edited by Hortzy; Apr 5, 2020 @ 12:09pm
Rogue771 Apr 5, 2020 @ 12:06pm 
Ok so i got the memory point to work but the object just pivots around that point and stays facing the original direction instead of facing where the turret is pointing
Rogue771 Apr 5, 2020 @ 12:06pm 
Originally posted by Hortzy:
Originally posted by Rogue771:
Thanks, do you have an example code on how you would go about attaching to the memory point? Or is it something like: thing attachTo [object, [0,0,0],"memoryPoint"];

thats exactly it
thanks xD
Hortzy Apr 5, 2020 @ 12:14pm 
Combine commands like.
_dir = _vehicle weaponDirection (CurrentWeapon _vehicle); _obj setDir _dir;
Hortzy Apr 5, 2020 @ 12:15pm 
Also, for commands like that to work in realtime, they will have to be executed on eachframe, or in a loop
Rogue771 Apr 5, 2020 @ 12:22pm 
Alright, thanks for the help ill give it a try
Moriquendi Feb 12, 2023 @ 12:30pm 
Did you find a way?
Sana Feb 12, 2023 @ 6:59pm 
you really come in 3 years later and ask that question 💀💀
Moriquendi Feb 13, 2023 @ 8:46am 
Originally posted by Sana:
you really come in 3 years later and ask that question 💀💀
You found my comment sooo.. I've check the dates and yes, it's almost 3 years :)
Rogue771 Feb 14, 2023 @ 2:07am 
♥♥♥♥♥♥♥♥
Rogue771 Feb 14, 2023 @ 2:07am 
3 years lmao, completely forgot about this
Sana Feb 15, 2023 @ 3:51pm 
Hahaha, i dont know why but i got the notification for this post, i think i subbed to the post back when i was trying to figure the same thing out... real question is, did anyone figure out?
Redcell May 9, 2024 @ 5:20pm 
_object attachTo [_targetObject, [0,0,0], "OsaHlavne",true];

hopefully that works
< >
Showing 1-14 of 14 comments
Per page: 1530 50