Hi again.
I set up a scripted resupply/reinforcement route for a blackhawk and I'm probably going to use it in a mission I'm making....when the chopper's altitude drops below 2 meters, ammo crates are setpos'd to its position (offset slightly to avoid collision).
Right now it's simply using the chopper's X/Y coords to move the crates (highly complicated stuff here
), but I want to know if there's a way to take into account the chopper's direction.
Example: Chopper faces due North and the crates are moved to a position 2 meters west of the bird to simulate tossing them out the door.
Chopper now faces due East....boxes are still created at (getpos chopper select 0)-2, putting them more or less under the tailboom.
It just doesn't look right sometimes, if you follow what I'm saying.
Is there a way to make the crates move to a position relative to the chopper's heading? For example always make the crates appear 2 meters away at heading 270* (puts them 2 meters to the left, no matter which way it's facing)?
It's a cosmetic thing, I know, but it would be nice to do it the "right" way.