Page MenuHomeFeedback Tracker

Can't attach objects to "Tent" objects
New, WishlistPublic

Description

I can't attach a lantern, compass, basket or any other object onto most of the "tent" objects. IE; The camping tables. I can attach these small objects to other things outside of the "tent" objects. And I can even attach them onto a "pile of wood" object found within the "tent" objects.

Details

Legacy ID
696820652
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Go into the SP editor. Select "empty", "tents" & Place either of the "camping tables" and name it table1. place a lantern and name it lantern1. Hit escape & go into the debug console. Put: lantern1 attachTo [table1, [0,0,0]] & execute the code. The lantern doesn't move. It attaches to nothing.

Event Timeline

David77 edited Steps To Reproduce. (Show Details)Sep 19 2013, 3:34 AM
David77 edited Additional Information. (Show Details)
David77 set Category to Scripting.
David77 set Reproducibility to Always.
David77 set Severity to None.
David77 set Resolution to Open.
David77 set Legacy ID to 696820652.May 7 2016, 4:48 PM

Confirmed and as wiki page mentions, this could happen with small objects. However why would you want to use attachTo? This is Arma 3 and lantern is PhysX object. If you just place it over the table

latern1 setpos (table1 modelToWorld [0,0,0.6]);

You can observe it falls and stays on top of the table and if you shoot it, it falls over, isn't this a better solution?

Helio added a subscriber: KillZone.May 7 2016, 4:48 PM
Helio added a comment.Mar 22 2014, 3:41 PM

@KillZone Kid:

Sadly this doesn't work so well, the lantern will be stuck in the middle of the table board and some objects like dossiers just completely fall through it.

@Helio This is not true. I have just placed a file on camping table with setPos. It is tricky as if you put it a bit higher or lower it falls through. But there there is Z number which will make it stay. If you shoot it it will fall through.

If you use attachto it doesnt move the file but it does attach it (returned attachedTo array is not empty). Any attached object has simulation disabled, so what you can do is place object with setpos and disable its simulation:

file1 setpos (table1 modeltoworld [0.2,0,0.41]);
file1 enablesimulation false;

F2kSel added a subscriber: F2kSel.May 7 2016, 4:48 PM

Attchto does seem to be messed up. Using small objects I get the following

file1 setpos (table1 modeltoworld [0.2,0,0.41]);file1 attachto [table1];

Will also set the files without it falling however if you move the table the object is left behind.

Also if I use the following nothing happens (small objects file)

null=[] spawn {sleep 1;file1 attachto [desk,[0,0,0.56]]};

But if you change sleep 1 to sleep 0.01 the file now moves to the desk.

If you use files from Intel then the delay doesn't matter.

There is no consistency with object in this game. Attched should attach them not position them and whats with the delay?

Probably related to http://feedback.arma3.com/view.php?id=7228

@f2k sel As a workaround you can try to add "EpeContact" event handler to the table and cycle through attachedObjects and reposition them every time when table is disturbed

That can work but it is still only a work around, I use an invisible helper object or game logic and attach small objects to that and then just move the helper with the main object. It's not ideal but they are actually attached.
A sort of virtual object holder.

It's strange that you can attach objects to helpers , grave items, game logics and vehicles but not desks, tables and shelves.