top of page

To attach object to unit or another object, follow theses steps :
Place invisible heliport for exemple, and name it holder
Place object you want (for exemple a lamp) to attach to heliport and past in INIT box :
this attachTo [holder,[0,0,5]];
Your object (lamp) will be attached to invisible heliport with height of 5 meters
To rotate your attached object, place the following code :
this setDir 180;
180 is the rotation direction on 360 of your object
So you can do it for our exemple in INIT box of your lamp :
this attachTo [holder,[0,0,5]]; this setDir 180;
ATTACH OBJECT TO UNIT/OBJECT
bottom of page