Now, what I want is for the rear to be open on the Antonov.pbo, when the game starts (or after a while, I figured that could be done with a trigger or similar). I also want to remove the "open rear / close" (don't remember the real name for the action) action from the players action menu. That way the player/players have no control of the rear thing. I only want it to be controlled by an AI or a trigger, or logic
(afaik) you can not remove actions that are added in the action menu with other than
addAction...
And in this case the action is (at least should be) added by the
class userActions in the addon's config.cpp...
And yes, you can have the rear open in the beginning of the mission, but you don't necessarily need a trigger or such, just name the plane and put in the missions init.sqs
nameOfPlane animate ["whateverTheAnimPartIsCalled",phase]...
Now this is a bit tricky as the addon's readme (if it has one) does not probably tell you the names of the animated parts, so you probably would need to unpbo the addon to get a look at it's config...
In there you would find the names...
The phase is usually like this: 0 = closed, 1 = open...
When AI is concerned you would need trigger(s) placed at the rear and have a quite small radius so that When an AI is close enough to the rear the trigger would then trig and open the 'hatch'...
If this should be done in mid-flight, it would probably need some scripting...
But, I do not have this addon so can't help much