Hey, that's a great idea, Wolf!
I'll try that.
Ok, now I think I only have three more questions about this crate-carrying-issue.
I hope that it's ok to ask it here, since it partly doesn't have much to do with attachto, etc.
1. Let's say I have 7 crates for the player to carry. The crates are named crate1, crate2, etc.
The player can lift up a crate by the following addAction in a trigger around the crate:
carrycrate = player addAction ["Lift crate","scripts\liftcrate.sqf"];
In liftcrate.sqf then there comes the attachto command:
crate1 attachTo [player, [0,0.9,1]];
My problem now is that I don't know how to make this addAction to work with all of the crates, since I can't (-> don't know how to) put an array (?) with all 7 crates into this addAction command.
A possible but very dirty workaround would be to create a script for every single crate (liftcrate1.sqf, liftcrate2.sqf, etc.), but I finally want to learn how to script better.
2. A very noobish sqf problem:
When I attachto the crate to the player, it directly jumps into its position, which is pretty ugly.
How would a sqf script look like where in every loop some centimeters of height are added until the final height is reached? I tried it with some standard while-do scripts but didn't understand how to work with the height (how to add height)...
3. When I detach the crate, it does stay in the air. How can I make it fall to the ground?
I guess that this could be done the same way than in question 2, am I right? Or any other idea / script?
Thank you very much for your precious help!!